]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-51154.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-51154.stderr
1 error[E0308]: mismatched types
2 --> $DIR/issue-51154.rs:2:30
3 |
4 LL | fn foo<F: FnMut()>() {
5 | - this type parameter
6 LL | let _: Box<F> = Box::new(|| ());
7 | ^^^^^ expected type parameter `F`, found closure
8 |
9 = note: expected type parameter `F`
10 found closure `[closure@$DIR/issue-51154.rs:2:30: 2:35]`
11 = help: every closure has a distinct type and so could not always match the caller-chosen type of parameter `F`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.