]> git.proxmox.com Git - rustc.git/blame_incremental - tests/ui/issues/issue-51154.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / issues / issue-51154.stderr
... / ...
CommitLineData
1error[E0308]: mismatched types
2 --> $DIR/issue-51154.rs:2:30
3 |
4LL | fn foo<F: FnMut()>() {
5 | - expected this type parameter
6LL | let _: Box<F> = Box::new(|| ());
7 | -------- ^^^^^ expected type parameter `F`, found closure
8 | |
9 | arguments to this function are incorrect
10 |
11 = note: expected type parameter `F`
12 found closure `{closure@$DIR/issue-51154.rs:2:30: 2:32}`
13 = help: every closure has a distinct type and so could not always match the caller-chosen type of parameter `F`
14note: associated function defined here
15 --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0308`.