]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-58022.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-58022.stderr
CommitLineData
e74abb32
XL
1error[E0423]: expected function, tuple struct or tuple variant, found trait `Foo`
2 --> $DIR/issue-58022.rs:14:9
3 |
4LL | Foo(Box::new(*slice))
5 | ^^^ not a function, tuple struct or tuple variant
6
60c5eb7d 7error[E0283]: type annotations needed
e74abb32
XL
8 --> $DIR/issue-58022.rs:4:25
9 |
10LL | const SIZE: usize;
11 | ------------------ required by `Foo::SIZE`
12LL |
13LL | fn new(slice: &[u8; Foo::SIZE]) -> Self;
60c5eb7d
XL
14 | ^^^^^^^^^ cannot infer type
15 |
16 = note: cannot resolve `_: Foo`
e74abb32
XL
17
18error: aborting due to 2 previous errors
19
20Some errors have detailed explanations: E0283, E0423.
21For more information about an error, try `rustc --explain E0283`.