summary refs log tree commit diff
path: root/src/test/ui/specialization/min_specialization/specialization_trait.stderr
blob: 8a70d6cc1bf21b8565fcacbba6a4416369730322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
error: cannot specialize on `'static` lifetime
  --> $DIR/specialization_trait.rs:11:1
   |
LL | / impl SpecMarker for &'static u8 {
LL | |
LL | |     fn f() {}
LL | | }
   | |_^

error: specializing impl repeats parameter `T`
  --> $DIR/specialization_trait.rs:16:1
   |
LL | / impl<T> SpecMarker for (T, T) {
LL | |
LL | |     fn f() {}
LL | | }
   | |_^

error: cannot specialize on trait `Clone`
  --> $DIR/specialization_trait.rs:21:1
   |
LL | / impl<T: Clone> SpecMarker for [T] {
LL | |
LL | |     fn f() {}
LL | | }
   | |_^

error: aborting due to 3 previous errors