]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/bad-options.stderr
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.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 `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 `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: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
32   --> $DIR/bad-options.rs:20:25
33    |
34 LL | global_asm!("", options(nomem));
35    |                         ^^^^^ expected one of `)`, `att_syntax`, or `raw`
36
37 error: expected one of `)`, `att_syntax`, or `raw`, found `readonly`
38   --> $DIR/bad-options.rs:22:25
39    |
40 LL | global_asm!("", options(readonly));
41    |                         ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
42
43 error: expected one of `)`, `att_syntax`, or `raw`, found `noreturn`
44   --> $DIR/bad-options.rs:24:25
45    |
46 LL | global_asm!("", options(noreturn));
47    |                         ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
48
49 error: expected one of `)`, `att_syntax`, or `raw`, found `pure`
50   --> $DIR/bad-options.rs:26:25
51    |
52 LL | global_asm!("", options(pure));
53    |                         ^^^^ expected one of `)`, `att_syntax`, or `raw`
54
55 error: expected one of `)`, `att_syntax`, or `raw`, found `nostack`
56   --> $DIR/bad-options.rs:28:25
57    |
58 LL | global_asm!("", options(nostack));
59    |                         ^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
60
61 error: expected one of `)`, `att_syntax`, or `raw`, found `preserves_flags`
62   --> $DIR/bad-options.rs:30:25
63    |
64 LL | global_asm!("", options(preserves_flags));
65    |                         ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
66
67 error: aborting due to 11 previous errors
68