2018-08-08 12:28:26 +00:00
|
|
|
error[E0665]: `Default` cannot be derived for enums, only structs
|
2018-10-04 13:31:35 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:9:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | #[derive(Default)]
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
|
|
|
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-02-20 09:19:48 +00:00
|
|
|
error: asm template must be a string literal
|
|
|
|
--> $DIR/macros-nonfatal-errors.rs:13:10
|
|
|
|
|
|
|
|
|
LL | asm!(invalid);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
error: inline assembly must be a string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:14:15
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2020-02-14 16:54:40 +00:00
|
|
|
LL | llvm_asm!(invalid);
|
|
|
|
| ^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: concat_idents! requires ident args.
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:16:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | concat_idents!("not", "idents");
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: argument must be a string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:18:17
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | option_env!(invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: expected string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:19:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | env!(invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: expected string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:20:10
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | env!(foo, abr, baz);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:21:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-05-26 23:45:30 +00:00
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: format argument must be a string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:23:13
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | format!(invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2018-08-08 12:28:26 +00:00
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | format!("{}", invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: argument must be a string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:25:14
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | include!(invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: argument must be a string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:27:18
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | include_str!(invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-04 13:31:35 +00:00
|
|
|
error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:28:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | include_str!("i'd be quite surprised if a file with this name existed");
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: argument must be a string literal
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:29:20
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | include_bytes!(invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-04 13:31:35 +00:00
|
|
|
error: couldn't read $DIR/i'd be quite surprised if a file with this name existed: $FILE_NOT_FOUND_MSG (os error 2)
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:30:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | include_bytes!("i'd be quite surprised if a file with this name existed");
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-12-16 13:56:47 +00:00
|
|
|
|
|
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
error: trace_macros! accepts only `true` or `false`
|
2020-02-20 09:19:48 +00:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:32:5
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | trace_macros!(invalid);
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-02-20 09:19:48 +00:00
|
|
|
error: aborting due to 15 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2019-11-12 11:09:02 +00:00
|
|
|
For more information about this error, try `rustc --explain E0665`.
|