]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/x86_64/bad-options.stderr
Rollup merge of #97325 - tmiasko:capture-enum-field, r=arora-aman
[rust.git] / src / test / ui / asm / x86_64 / 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: asm with `clobber_abi` must specify explicit registers for outputs
40   --> $DIR/bad-options.rs:24:20
41    |
42 LL |         asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
43    |                    ^^^^^^^^^^^^  ----------------  ---------------- clobber_abi
44    |                    |             |
45    |                    |             clobber_abi
46    |                    generic outputs
47
48 error: expected one of `)`, `att_syntax`, `may_unwind`, or `raw`, found `nomem`
49   --> $DIR/bad-options.rs:31:25
50    |
51 LL | global_asm!("", options(nomem));
52    |                         ^^^^^ expected one of `)`, `att_syntax`, `may_unwind`, or `raw`
53
54 error: expected one of `)`, `att_syntax`, `may_unwind`, or `raw`, found `readonly`
55   --> $DIR/bad-options.rs:33:25
56    |
57 LL | global_asm!("", options(readonly));
58    |                         ^^^^^^^^ expected one of `)`, `att_syntax`, `may_unwind`, or `raw`
59
60 error: expected one of `)`, `att_syntax`, `may_unwind`, or `raw`, found `noreturn`
61   --> $DIR/bad-options.rs:35:25
62    |
63 LL | global_asm!("", options(noreturn));
64    |                         ^^^^^^^^ expected one of `)`, `att_syntax`, `may_unwind`, or `raw`
65
66 error: expected one of `)`, `att_syntax`, `may_unwind`, or `raw`, found `pure`
67   --> $DIR/bad-options.rs:37:25
68    |
69 LL | global_asm!("", options(pure));
70    |                         ^^^^ expected one of `)`, `att_syntax`, `may_unwind`, or `raw`
71
72 error: expected one of `)`, `att_syntax`, `may_unwind`, or `raw`, found `nostack`
73   --> $DIR/bad-options.rs:39:25
74    |
75 LL | global_asm!("", options(nostack));
76    |                         ^^^^^^^ expected one of `)`, `att_syntax`, `may_unwind`, or `raw`
77
78 error: expected one of `)`, `att_syntax`, `may_unwind`, or `raw`, found `preserves_flags`
79   --> $DIR/bad-options.rs:41:25
80    |
81 LL | global_asm!("", options(preserves_flags));
82    |                         ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, `may_unwind`, or `raw`
83
84 error: invalid ABI for `clobber_abi`
85   --> $DIR/bad-options.rs:20:18
86    |
87 LL |         asm!("", clobber_abi("foo"));
88    |                  ^^^^^^^^^^^^^^^^^^
89    |
90    = note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
91
92 error: `C` ABI specified multiple times
93   --> $DIR/bad-options.rs:24:52
94    |
95 LL |         asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
96    |                                  ----------------  ^^^^^^^^^^^^^^^^
97    |                                  |
98    |                                  previously specified here
99
100 error: aborting due to 15 previous errors
101