about summary refs log tree commit diff
path: root/tests/ui/attributes/unsafe/double-unsafe-attributes.stderr
blob: 0825cf794083d1328307f21e1b970acdf4b4841a (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
error: expected identifier, found keyword `unsafe`
  --> $DIR/double-unsafe-attributes.rs:1:10
   |
LL | #[unsafe(unsafe(no_mangle))]
   |          ^^^^^^ expected identifier, found keyword
   |
help: escape `unsafe` to use it as an identifier
   |
LL | #[unsafe(r#unsafe(no_mangle))]
   |          ++

error: `r#unsafe` is not an unsafe attribute
  --> $DIR/double-unsafe-attributes.rs:1:3
   |
LL | #[unsafe(unsafe(no_mangle))]
   |   ^^^^^^ this is not an unsafe attribute
   |
   = note: extraneous unsafe is not allowed in attributes

error: cannot find attribute `r#unsafe` in this scope
  --> $DIR/double-unsafe-attributes.rs:1:10
   |
LL | #[unsafe(unsafe(no_mangle))]
   |          ^^^^^^

error: aborting due to 3 previous errors