]> git.proxmox.com Git - rustc.git/blame - src/test/ui/typeck/issue-87181/empty-tuple-method.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / typeck / issue-87181 / empty-tuple-method.rs
CommitLineData
04454e1e
FG
1struct Bar<T> {
2 bar: T
3}
4
5struct Foo();
6impl Foo {
f2b60f7d 7 fn foo(&self) { }
04454e1e
FG
8}
9
10fn 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}