summary refs log tree commit diff
path: root/src/test/ui/specialization/defaultimpl/validation.stderr
blob: 2778cac7ae5712501d1566339e4aab6530cc9c86 (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: inherent impls cannot be default
  --> $DIR/validation.rs:7:1
   |
LL | default impl S {} //~ ERROR inherent impls cannot be default
   | ^^^^^^^^^^^^^^^^^
   |
   = note: only trait implementations may be annotated with default

error: impls of auto traits cannot be default
  --> $DIR/validation.rs:9:1
   |
LL | default unsafe impl Send for S {} //~ ERROR impls of auto traits cannot be default
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: impls of auto traits cannot be default
  --> $DIR/validation.rs:10:1
   |
LL | default impl !Send for Z {} //~ ERROR impls of auto traits cannot be default
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0192]: negative impls are only allowed for auto traits (e.g., `Send` and `Sync`)
  --> $DIR/validation.rs:13:1
   |
LL | default impl !Tr for S {} //~ ERROR negative impls are only allowed for auto traits
   | ^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0192`.