Skip to content

Commit a411bd6

Browse files
Kivooeotgross35
authored andcommitted
moved renamed docs | max-min-classes.rs
1 parent ea311ba commit a411bd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ui/resolve/struct-function-same-name.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Test that a struct and function can have the same name
2+
//!
13
//@ run-pass
24

35
#![allow(non_snake_case)]
@@ -23,7 +25,7 @@ impl Product for Foo {
2325
}
2426

2527
fn Foo(x: isize, y: isize) -> Foo {
26-
Foo { x: x, y: y }
28+
Foo { x, y }
2729
}
2830

2931
pub fn main() {

0 commit comments

Comments
 (0)