]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/naked-invalid-attr.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / asm / naked-invalid-attr.stderr
1 error: attribute should be applied to a function definition
2 --> $DIR/naked-invalid-attr.rs:14:1
3 |
4 LL | #[naked]
5 | ^^^^^^^^
6 LL | #[repr(C)]
7 LL | / struct S {
8 LL | | a: u32,
9 LL | | b: u32,
10 LL | | }
11 | |_- not a function definition
12
13 error: attribute should be applied to a function definition
14 --> $DIR/naked-invalid-attr.rs:51:5
15 |
16 LL | #[naked] || {};
17 | ^^^^^^^^ ----- not a function definition
18
19 error: attribute should be applied to a function definition
20 --> $DIR/naked-invalid-attr.rs:22:5
21 |
22 LL | #[naked]
23 | ^^^^^^^^
24 LL | extern "C" fn invoke(&self);
25 | ---------------------------- not a function definition
26
27 error: attribute should be applied to a function definition
28 --> $DIR/naked-invalid-attr.rs:10:5
29 |
30 LL | #[naked]
31 | ^^^^^^^^
32 LL | fn f();
33 | ------- not a function definition
34
35 error: attribute should be applied to a function definition
36 --> $DIR/naked-invalid-attr.rs:5:1
37 |
38 LL | #![naked]
39 | ^^^^^^^^^ cannot be applied to crates
40
41 error: aborting due to 5 previous errors
42