about summary refs log tree commit diff
path: root/tests/ui/parser/attribute-on-empty.stderr
blob: 7c4806c8704aa52c93e5fcea13cf1ee16fec663d (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
error: attributes cannot be applied here
  --> $DIR/attribute-on-empty.rs:7:16
   |
LL |     let _: Baz<#[cfg(any())]> = todo!();
   |          -     ^^^^^^^^^^^^^ attributes are not allowed here
   |          |
   |          while parsing the type for `_`

error: attributes cannot be applied to a function parameter's type
  --> $DIR/attribute-on-empty.rs:11:14
   |
LL | fn f(_param: #[attr]) {}
   |              ^^^^^^^ attributes are not allowed here

error: expected type, found `)`
  --> $DIR/attribute-on-empty.rs:11:21
   |
LL | fn f(_param: #[attr]) {}
   |                     ^ expected type

error: attributes cannot be applied here
  --> $DIR/attribute-on-empty.rs:15:11
   |
LL | fn g() -> #[attr] { 0 }
   |           ^^^^^^^ attributes are not allowed here

error: attributes cannot be applied here
  --> $DIR/attribute-on-empty.rs:19:12
   |
LL |     field: #[attr],
   |            ^^^^^^^ attributes are not allowed here

error: attributes cannot be applied here
  --> $DIR/attribute-on-empty.rs:21:14
   |
LL |     field1: (#[attr], i32),
   |              ^^^^^^^ attributes are not allowed here

error: attributes cannot be applied here
  --> $DIR/attribute-on-empty.rs:25:15
   |
LL | type Tuple = (#[attr], String);
   |               ^^^^^^^ attributes are not allowed here

error: attributes cannot be applied here
  --> $DIR/attribute-on-empty.rs:28:6
   |
LL | impl #[attr] {}
   |      ^^^^^^^ attributes are not allowed here

error: aborting due to 8 previous errors