]>
Commit | Line | Data |
---|---|---|
04454e1e FG |
1 | struct Bar<T> { |
2 | bar: T | |
3 | } | |
4 | ||
5 | struct Foo(); | |
6 | impl Foo { | |
f2b60f7d | 7 | fn foo(&self) { } |
04454e1e FG |
8 | } |
9 | ||
10 | fn main() { | |
11 | let thing = Bar { bar: Foo }; | |
12 | thing.bar.foo(); | |
13 | //~^ ERROR no method named `foo` found for fn item `fn() -> Foo {Foo}` in the current scope [E0599] | |
14 | } |