]> git.proxmox.com Git - rustc.git/blame - src/test/ui/mismatched_types/closure-mismatch.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / mismatched_types / closure-mismatch.stderr
CommitLineData
f035d41b 1error[E0308]: mismatched types
0731742a 2 --> $DIR/closure-mismatch.rs:8:5
7cac9316 3 |
532ac7d7 4LL | baz(|_| ());
f035d41b 5 | ^^^ one type is more general than the other
7cac9316 6 |
1b1a35ee
XL
7 = note: expected type `for<'r> Fn<(&'r (),)>`
8 found type `Fn<(&(),)>`
7cac9316 9
f035d41b 10error: aborting due to previous error
7cac9316 11
f035d41b 12For more information about this error, try `rustc --explain E0308`.