fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1015 B21 linesraw
1error[E0277]: the size for values of type `[isize]` cannot be known at compilation time
2  --> $DIR/dst-sized-trait-param.rs:7:6
3   |
4LL | impl Foo<[isize]> for usize { }
5   |      ^^^^^^^^^^^^ doesn't have a size known at compile-time
6   |
7   = help: the trait `std::marker::Sized` is not implemented for `[isize]`
8   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
9
10error[E0277]: the size for values of type `[usize]` cannot be known at compilation time
11  --> $DIR/dst-sized-trait-param.rs:10:6
12   |
13LL | impl Foo<isize> for [usize] { }
14   |      ^^^^^^^^^^ doesn't have a size known at compile-time
15   |
16   = help: the trait `std::marker::Sized` is not implemented for `[usize]`
17   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0277`.