2018-08-08 07:28:26 -05:00
|
|
|
error[E0665]: `Default` cannot be derived for enums, only structs
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:9:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | #[derive(Default)]
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: inline assembly must be a string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:13:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | asm!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: concat_idents! requires ident args.
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:15:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | concat_idents!("not", "idents");
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: argument must be a string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:17:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | option_env!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: expected string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:18:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | env!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: expected string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:19:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | env!(foo, abr, baz);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:20:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST");
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: format argument must be a string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:22:13
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | format!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
help: you might be missing a string literal to format with
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | format!("{}", invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: argument must be a string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:24:14
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | include!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: argument must be a string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:26:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | include_str!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-04 08:31:35 -05: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)
|
|
|
|
--> $DIR/macros-nonfatal-errors.rs:27:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | include_str!("i'd be quite surprised if a file with this name existed");
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: argument must be a string literal
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:28:20
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | include_bytes!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-10-04 08:31:35 -05: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)
|
|
|
|
--> $DIR/macros-nonfatal-errors.rs:29:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | include_bytes!("i'd be quite surprised if a file with this name existed");
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: trace_macros! accepts only `true` or `false`
|
2018-10-04 08:31:35 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:31:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | trace_macros!(invalid);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2018-05-13 19:22:52 -05:00
|
|
|
error: aborting due to 14 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|