]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-58022.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-58022.stderr
1 error[E0423]: expected function, tuple struct or tuple variant, found trait `Foo`
2 --> $DIR/issue-58022.rs:14:9
3 |
4 LL | Foo(Box::new(*slice))
5 | ^^^ not a function, tuple struct or tuple variant
6
7 error[E0283]: type annotations needed
8 --> $DIR/issue-58022.rs:4:25
9 |
10 LL | const SIZE: usize;
11 | ------------------ required by `Foo::SIZE`
12 LL |
13 LL | fn new(slice: &[u8; Foo::SIZE]) -> Self;
14 | ^^^^^^^^^
15 | |
16 | cannot infer type
17 | help: use the fully qualified path to an implementation: `<Type as Foo>::SIZE`
18 |
19 = note: cannot satisfy `_: Foo`
20 = note: associated constants cannot be accessed directly on a `trait`, they can only be accessed through a specific `impl`
21
22 error: aborting due to 2 previous errors
23
24 Some errors have detailed explanations: E0283, E0423.
25 For more information about an error, try `rustc --explain E0283`.