fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0665]: `Default` cannot be derived for enums, only structs 2 --> $DIR/macros-nonfatal-errors.rs:9:10 3 | 4LL | #[derive(Default)] 5 | ^^^^^^^ 6 | 7 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) 8 9error: inline assembly must be a string literal 10 --> $DIR/macros-nonfatal-errors.rs:13:10 11 | 12LL | asm!(invalid); 13 | ^^^^^^^ 14 15error: concat_idents! requires ident args. 16 --> $DIR/macros-nonfatal-errors.rs:15:5 17 | 18LL | concat_idents!("not", "idents"); 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 20 21error: argument must be a string literal 22 --> $DIR/macros-nonfatal-errors.rs:17:17 23 | 24LL | option_env!(invalid); 25 | ^^^^^^^ 26 27error: expected string literal 28 --> $DIR/macros-nonfatal-errors.rs:18:10 29 | 30LL | env!(invalid); 31 | ^^^^^^^ 32 33error: expected string literal 34 --> $DIR/macros-nonfatal-errors.rs:19:10 35 | 36LL | env!(foo, abr, baz); 37 | ^^^ 38 39error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined 40 --> $DIR/macros-nonfatal-errors.rs:20:5 41 | 42LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST"); 43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 44 45error: format argument must be a string literal 46 --> $DIR/macros-nonfatal-errors.rs:22:13 47 | 48LL | format!(invalid); 49 | ^^^^^^^ 50 | 51help: you might be missing a string literal to format with 52 | 53LL | format!("{}", invalid); 54 | ^^^^^ 55 56error: argument must be a string literal 57 --> $DIR/macros-nonfatal-errors.rs:24:14 58 | 59LL | include!(invalid); 60 | ^^^^^^^ 61 62error: argument must be a string literal 63 --> $DIR/macros-nonfatal-errors.rs:26:18 64 | 65LL | include_str!(invalid); 66 | ^^^^^^^ 67 68error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2) 69 --> $DIR/macros-nonfatal-errors.rs:27:5 70 | 71LL | include_str!("i'd be quite surprised if a file with this name existed"); 72 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 73 | 74 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 75 76error: argument must be a string literal 77 --> $DIR/macros-nonfatal-errors.rs:28:20 78 | 79LL | include_bytes!(invalid); 80 | ^^^^^^^ 81 82error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2) 83 --> $DIR/macros-nonfatal-errors.rs:29:5 84 | 85LL | include_bytes!("i'd be quite surprised if a file with this name existed"); 86 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 87 | 88 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 89 90error: trace_macros! accepts only `true` or `false` 91 --> $DIR/macros-nonfatal-errors.rs:31:5 92 | 93LL | trace_macros!(invalid); 94 | ^^^^^^^^^^^^^^^^^^^^^^^ 95 96error: aborting due to 14 previous errors 97 98For more information about this error, try `rustc --explain E0665`.