]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-14092.stderr
Rollup merge of #85174 - GuillaumeGomez:doc-code-block-border-radius, r=jsha
[rust.git] / src / test / ui / issues / issue-14092.stderr
1 error[E0107]: missing generics for struct `Box`
2   --> $DIR/issue-14092.rs:1:11
3    |
4 LL | fn fn1(0: Box) {}
5    |           ^^^ expected at least 1 generic argument
6    |
7 note: struct defined here, with at least 1 generic parameter: `T`
8   --> $SRC_DIR/alloc/src/boxed.rs:LL:COL
9    |
10 LL | pub struct Box<
11    |            ^^^
12 LL |     T: ?Sized,
13    |     -
14 help: add missing generic argument
15    |
16 LL | fn fn1(0: Box<T>) {}
17    |           ^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0107`.