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