]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/bad-options.stderr
New upstream version 1.56.0+dfsg1
[rustc.git] / src / test / ui / asm / bad-options.stderr
1 error: the `nomem` and `readonly` options are mutually exclusive
2 --> $DIR/bad-options.rs:8:18
3 |
4 LL | asm!("", options(nomem, readonly));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^
6
7 error: the `pure` and `noreturn` options are mutually exclusive
8 --> $DIR/bad-options.rs:10:18
9 |
10 LL | asm!("", options(pure, nomem, noreturn));
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: asm with the `pure` option must have at least one output
14 --> $DIR/bad-options.rs:10:18
15 |
16 LL | asm!("", options(pure, nomem, noreturn));
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: asm with the `pure` option must have at least one output
20 --> $DIR/bad-options.rs:13:33
21 |
22 LL | asm!("{}", in(reg) foo, options(pure, nomem));
23 | ^^^^^^^^^^^^^^^^^^^^
24
25 error: asm outputs are not allowed with the `noreturn` option
26 --> $DIR/bad-options.rs:15:20
27 |
28 LL | asm!("{}", out(reg) foo, options(noreturn));
29 | ^^^^^^^^^^^^
30
31 error: asm with `clobber_abi` must specify explicit registers for outputs
32 --> $DIR/bad-options.rs:22:20
33 |
34 LL | asm!("{}", out(reg) foo, clobber_abi("C"));
35 | ^^^^^^^^^^^^ ---------------- clobber_abi
36 | |
37 | generic outputs
38
39 error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
40 --> $DIR/bad-options.rs:28:25
41 |
42 LL | global_asm!("", options(nomem));
43 | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
44
45 error: expected one of `)`, `att_syntax`, or `raw`, found `readonly`
46 --> $DIR/bad-options.rs:30:25
47 |
48 LL | global_asm!("", options(readonly));
49 | ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
50
51 error: expected one of `)`, `att_syntax`, or `raw`, found `noreturn`
52 --> $DIR/bad-options.rs:32:25
53 |
54 LL | global_asm!("", options(noreturn));
55 | ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
56
57 error: expected one of `)`, `att_syntax`, or `raw`, found `pure`
58 --> $DIR/bad-options.rs:34:25
59 |
60 LL | global_asm!("", options(pure));
61 | ^^^^ expected one of `)`, `att_syntax`, or `raw`
62
63 error: expected one of `)`, `att_syntax`, or `raw`, found `nostack`
64 --> $DIR/bad-options.rs:36:25
65 |
66 LL | global_asm!("", options(nostack));
67 | ^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
68
69 error: expected one of `)`, `att_syntax`, or `raw`, found `preserves_flags`
70 --> $DIR/bad-options.rs:38:25
71 |
72 LL | global_asm!("", options(preserves_flags));
73 | ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
74
75 error: invalid ABI for `clobber_abi`
76 --> $DIR/bad-options.rs:20:18
77 |
78 LL | asm!("", clobber_abi("foo"));
79 | ^^^^^^^^^^^^^^^^^^
80 |
81 = note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
82
83 error: aborting due to 13 previous errors
84