Skip to content

Commit 4e43f31

Browse files
committed
moved renamed docs | max-min-classes.rs
1 parent cc044b6 commit 4e43f31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ui/max-min-classes.rs renamed to 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)