summary refs log tree commit diff
path: root/src/test/ui/trait-alias-fail.stderr
blob: f7b144c06f80ae309d6f446e2e4b5567eaeaff93 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
error: type parameters on the left side of a trait alias cannot be bounded
  --> $DIR/trait-alias-fail.rs:15:14
   |
LL | trait Alias2<T: Clone = ()> = Default;
   |              ^

error: type parameters on the left side of a trait alias cannot have defaults
  --> $DIR/trait-alias-fail.rs:15:14
   |
LL | trait Alias2<T: Clone = ()> = Default;
   |              ^

error[E0573]: expected type, found trait alias `Alias1`
  --> $DIR/trait-alias-fail.rs:20:6
   |
LL | impl Alias1 { //~ERROR expected type, found trait alias
   |      ^^^^^^ not a type

error[E0404]: expected trait, found trait alias `Alias1`
  --> $DIR/trait-alias-fail.rs:23:6
   |
LL | impl Alias1 for () { //~ERROR expected trait, found trait alias
   |      ^^^^^^ not a trait

error[E0658]: trait aliases are not yet fully implemented (see issue #41517)
  --> $DIR/trait-alias-fail.rs:13:1
   |
LL | trait Alias1<T> = Default where T: Clone; // ok
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(trait_alias)] to the crate attributes to enable

error[E0658]: trait aliases are not yet fully implemented (see issue #41517)
  --> $DIR/trait-alias-fail.rs:15:1
   |
LL | trait Alias2<T: Clone = ()> = Default;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: add #![feature(trait_alias)] to the crate attributes to enable

error: aborting due to 6 previous errors

Some errors occurred: E0404, E0573, E0658.
For more information about an error, try `rustc --explain E0404`.