about summary refs log tree commit diff
path: root/tests/ui/attributes/rustc_skip_during_method_dispatch.stderr
blob: 094987e944fdf67948ecd6cc782f7fef7cd6bc40 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
error[E0539]: malformed `rustc_skip_during_method_dispatch` attribute input
  --> $DIR/rustc_skip_during_method_dispatch.rs:3:1
   |
LL | #[rustc_skip_during_method_dispatch]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected this to be a list
   | help: must be of the form: `#[rustc_skip_during_method_dispatch(array, boxed_slice)]`

error[E0539]: malformed `rustc_skip_during_method_dispatch` attribute input
  --> $DIR/rustc_skip_during_method_dispatch.rs:7:1
   |
LL | #[rustc_skip_during_method_dispatch = "array"]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | expected this to be a list
   | help: must be of the form: `#[rustc_skip_during_method_dispatch(array, boxed_slice)]`

error[E0539]: malformed `rustc_skip_during_method_dispatch` attribute input
  --> $DIR/rustc_skip_during_method_dispatch.rs:11:1
   |
LL | #[rustc_skip_during_method_dispatch()]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--^
   | |                                  |
   | |                                  expected at least 1 argument here
   | help: must be of the form: `#[rustc_skip_during_method_dispatch(array, boxed_slice)]`

error[E0538]: malformed `rustc_skip_during_method_dispatch` attribute input
  --> $DIR/rustc_skip_during_method_dispatch.rs:15:1
   |
LL | #[rustc_skip_during_method_dispatch(array, boxed_slice, array)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----^^
   | |                                                       |
   | |                                                       found `array` used as a key more than once
   | help: must be of the form: `#[rustc_skip_during_method_dispatch(array, boxed_slice)]`

error[E0539]: malformed `rustc_skip_during_method_dispatch` attribute input
  --> $DIR/rustc_skip_during_method_dispatch.rs:19:1
   |
LL | #[rustc_skip_during_method_dispatch(slice)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----^^
   | |                                   |
   | |                                   valid arguments are `array` or `boxed_slice`
   | help: must be of the form: `#[rustc_skip_during_method_dispatch(array, boxed_slice)]`

error[E0565]: malformed `rustc_skip_during_method_dispatch` attribute input
  --> $DIR/rustc_skip_during_method_dispatch.rs:23:1
   |
LL | #[rustc_skip_during_method_dispatch(array = true)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------^^
   | |                                         |
   | |                                         didn't expect any arguments here
   | help: must be of the form: `#[rustc_skip_during_method_dispatch(array, boxed_slice)]`

error[E0565]: malformed `rustc_skip_during_method_dispatch` attribute input
  --> $DIR/rustc_skip_during_method_dispatch.rs:27:1
   |
LL | #[rustc_skip_during_method_dispatch("array")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------^^
   | |                                   |
   | |                                   didn't expect a literal here
   | help: must be of the form: `#[rustc_skip_during_method_dispatch(array, boxed_slice)]`

error: `#[rustc_skip_during_method_dispatch]` attribute cannot be used on trait impl blocks
  --> $DIR/rustc_skip_during_method_dispatch.rs:34:1
   |
LL | #[rustc_skip_during_method_dispatch(array)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `#[rustc_skip_during_method_dispatch]` can only be applied to traits

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0538, E0539, E0565.
For more information about an error, try `rustc --explain E0538`.