about summary refs log tree commit diff
path: root/src/test/ui/specialization/defaultimpl/validation.stderr
blob: 14a06c39088d4dd5c1bbf2db39c2e2c416c451cb (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 {}
   | ^^^^^^^^^^^^^^^^^
   |
   = 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
  --> $DIR/validation.rs:10:1
   |
LL | default impl !Send for Z {}
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^

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: aborting due to 4 previous errors

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