]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-87181/tuple-method.rs
Rollup merge of #106321 - compiler-errors:delayed-bug-backtrace, r=Nilstrieb
[rust.git] / tests / ui / typeck / issue-87181 / tuple-method.rs
1 struct Bar<T> {
2     bar: T
3 }
4
5 struct Foo(u8, i32);
6 impl Foo {
7     fn foo() { }
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(u8, i32) -> Foo {Foo}` in the current scope [E0599]
14 }