fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
654 B19 linesraw
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
7error[E0283]: type annotations needed: cannot resolve `_: Foo`
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;
14   |                         ^^^^^^^^^
15
16error: aborting due to 2 previous errors
17
18Some errors have detailed explanations: E0283, E0423.
19For more information about an error, try `rustc --explain E0283`.