summary refs log tree commit diff
path: root/src/test/ui/specialization/defaultimpl/validation.stderr
blob: 03b1ef69ca0725c0016d4f5f13861a44d5586598 (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
error: inherent impls cannot be `default`
  --> $DIR/validation.rs:7:1
   |
LL | default impl S {}
   | -------^^^^^^^
   | |
   | `default` because of this
   |
   = 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`.