]> git.lizzy.rs Git - rust.git/blob - src/test/ui/confuse-field-and-method/issue-18343.rs
Rollup merge of #100112 - RalfJung:assert_send_and_sync, r=m-ou-se
[rust.git] / src / test / 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 }