fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
589 B29 linesraw
1error: cannot specialize on `'static` lifetime
2  --> $DIR/specialization_trait.rs:11:1
3   |
4LL | / impl SpecMarker for &'static u8 {
5LL | |
6LL | |     fn f() {}
7LL | | }
8   | |_^
9
10error: specializing impl repeats parameter `T`
11  --> $DIR/specialization_trait.rs:16:1
12   |
13LL | / impl<T> SpecMarker for (T, T) {
14LL | |
15LL | |     fn f() {}
16LL | | }
17   | |_^
18
19error: cannot specialize on trait `std::clone::Clone`
20  --> $DIR/specialization_trait.rs:21:1
21   |
22LL | / impl<T: Clone> SpecMarker for [T] {
23LL | |
24LL | |     fn f() {}
25LL | | }
26   | |_^
27
28error: aborting due to 3 previous errors
29