2013-03-21 17:00:29 -05:00
|
|
|
struct Foo {
|
2015-01-08 05:02:42 -06:00
|
|
|
baz: usize
|
2013-03-21 17:00:29 -05:00
|
|
|
}
|
2013-05-03 18:25:04 -05:00
|
|
|
|
2013-03-21 17:00:29 -05:00
|
|
|
impl Foo {
|
|
|
|
fn bar() {
|
|
|
|
Foo { baz: 0 }.bar();
|
|
|
|
}
|
2013-05-03 18:25:04 -05:00
|
|
|
|
2016-03-09 10:57:53 -06:00
|
|
|
fn bar() { //~ ERROR duplicate definitions
|
2013-03-21 17:00:29 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|