]> git.lizzy.rs Git - rust.git/blob - tests/ui/confuse-field-and-method/issue-18343.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / ui / confuse-field-and-method / issue-18343.rs
1 struct Obj<F> where F: FnMut() -> u32 {
2     closure: F,
3 }
4
5 fn main() {
6     let o = Obj { closure: || 42 };
7     o.closure();
8     //~^ ERROR no method named `closure` found
9 }