1
1
error[E0665]: `Default` cannot be derived for enums, only structs
2
- --> $DIR/macros-nonfatal-errors.rs:21 :10
2
+ --> $DIR/macros-nonfatal-errors.rs:20 :10
3
3
|
4
4
LL | #[derive(Default)] //~ ERROR
5
5
| ^^^^^^^
6
6
7
7
error: inline assembly must be a string literal
8
- --> $DIR/macros-nonfatal-errors.rs:25 :10
8
+ --> $DIR/macros-nonfatal-errors.rs:24 :10
9
9
|
10
10
LL | asm!(invalid); //~ ERROR
11
11
| ^^^^^^^
12
12
13
13
error: concat_idents! requires ident args.
14
- --> $DIR/macros-nonfatal-errors.rs:27 :5
14
+ --> $DIR/macros-nonfatal-errors.rs:26 :5
15
15
|
16
16
LL | concat_idents!("not", "idents"); //~ ERROR
17
17
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
18
19
19
error: argument must be a string literal
20
- --> $DIR/macros-nonfatal-errors.rs:29 :17
20
+ --> $DIR/macros-nonfatal-errors.rs:28 :17
21
21
|
22
22
LL | option_env!(invalid); //~ ERROR
23
23
| ^^^^^^^
24
24
25
25
error: expected string literal
26
- --> $DIR/macros-nonfatal-errors.rs:30 :10
26
+ --> $DIR/macros-nonfatal-errors.rs:29 :10
27
27
|
28
28
LL | env!(invalid); //~ ERROR
29
29
| ^^^^^^^
30
30
31
31
error: expected string literal
32
- --> $DIR/macros-nonfatal-errors.rs:31 :10
32
+ --> $DIR/macros-nonfatal-errors.rs:30 :10
33
33
|
34
34
LL | env!(foo, abr, baz); //~ ERROR
35
35
| ^^^
36
36
37
37
error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
38
- --> $DIR/macros-nonfatal-errors.rs:32 :5
38
+ --> $DIR/macros-nonfatal-errors.rs:31 :5
39
39
|
40
40
LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST"); //~ ERROR
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
42
43
43
error[E0658]: non-ident macro paths are experimental (see issue #35896)
44
- --> $DIR/macros-nonfatal-errors.rs:34 :5
44
+ --> $DIR/macros-nonfatal-errors.rs:33 :5
45
45
|
46
46
LL | foo::blah!(); //~ ERROR
47
47
| ^^^^^^^^^
48
48
|
49
49
= help: add #![feature(use_extern_macros)] to the crate attributes to enable
50
50
51
51
error: format argument must be a string literal
52
- --> $DIR/macros-nonfatal-errors.rs:36 :13
52
+ --> $DIR/macros-nonfatal-errors.rs:35 :13
53
53
|
54
54
LL | format!(invalid); //~ ERROR
55
55
| ^^^^^^^
@@ -59,37 +59,37 @@ LL | format!("{}", invalid); //~ ERROR
59
59
| ^^^^^
60
60
61
61
error: argument must be a string literal
62
- --> $DIR/macros-nonfatal-errors.rs:38 :14
62
+ --> $DIR/macros-nonfatal-errors.rs:37 :14
63
63
|
64
64
LL | include!(invalid); //~ ERROR
65
65
| ^^^^^^^
66
66
67
67
error: argument must be a string literal
68
- --> $DIR/macros-nonfatal-errors.rs:40 :18
68
+ --> $DIR/macros-nonfatal-errors.rs:39 :18
69
69
|
70
70
LL | include_str!(invalid); //~ ERROR
71
71
| ^^^^^^^
72
72
73
73
error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: No such file or directory (os error 2)
74
- --> $DIR/macros-nonfatal-errors.rs:41 :5
74
+ --> $DIR/macros-nonfatal-errors.rs:40 :5
75
75
|
76
76
LL | include_str!("i'd be quite surprised if a file with this name existed"); //~ ERROR
77
77
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
78
79
79
error: argument must be a string literal
80
- --> $DIR/macros-nonfatal-errors.rs:42 :20
80
+ --> $DIR/macros-nonfatal-errors.rs:41 :20
81
81
|
82
82
LL | include_bytes!(invalid); //~ ERROR
83
83
| ^^^^^^^
84
84
85
85
error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: No such file or directory (os error 2)
86
- --> $DIR/macros-nonfatal-errors.rs:43 :5
86
+ --> $DIR/macros-nonfatal-errors.rs:42 :5
87
87
|
88
88
LL | include_bytes!("i'd be quite surprised if a file with this name existed"); //~ ERROR
89
89
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
90
90
91
91
error: trace_macros! accepts only `true` or `false`
92
- --> $DIR/macros-nonfatal-errors.rs:45 :5
92
+ --> $DIR/macros-nonfatal-errors.rs:44 :5
93
93
|
94
94
LL | trace_macros!(invalid); //~ ERROR
95
95
| ^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments