blob: e88f642b0707bf4c4428289cdfedcdac66bb47b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
struct Bar<T> {
bar: T
}
struct Foo(u8, i32);
impl Foo {
fn foo() { }
}
fn main() {
let thing = Bar { bar: Foo };
thing.bar.foo();
//~^ ERROR no method named `foo` found for fn item `fn(u8, i32) -> Foo {Foo}` in the current scope [E0599]
}
|