rust/src/test/ui/macros/macros-nonfatal-errors.stderr

101 lines
3.1 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0665]: `Default` cannot be derived for enums, only structs
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:21:10
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Default)] //~ ERROR
| ^^^^^^^
error: inline assembly must be a string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:25:10
2018-08-08 12:28:26 +00:00
|
LL | asm!(invalid); //~ ERROR
| ^^^^^^^
error: concat_idents! requires ident args.
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:27:5
2018-08-08 12:28:26 +00:00
|
LL | concat_idents!("not", "idents"); //~ ERROR
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: argument must be a string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:29:17
2018-08-08 12:28:26 +00:00
|
LL | option_env!(invalid); //~ ERROR
| ^^^^^^^
error: expected string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:30:10
2018-08-08 12:28:26 +00:00
|
LL | env!(invalid); //~ ERROR
| ^^^^^^^
error: expected string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:31:10
2018-08-08 12:28:26 +00:00
|
LL | env!(foo, abr, baz); //~ ERROR
| ^^^
error: environment variable `RUST_HOPEFULLY_THIS_DOESNT_EXIST` not defined
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:32:5
2018-08-08 12:28:26 +00:00
|
LL | env!("RUST_HOPEFULLY_THIS_DOESNT_EXIST"); //~ ERROR
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0658]: non-ident macro paths are experimental (see issue #35896)
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:34:5
2018-08-08 12:28:26 +00:00
|
LL | foo::blah!(); //~ ERROR
| ^^^^^^^^^
|
= help: add #![feature(use_extern_macros)] to the crate attributes to enable
error: format argument must be a string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:36:13
2018-08-08 12:28:26 +00:00
|
LL | format!(invalid); //~ ERROR
| ^^^^^^^
help: you might be missing a string literal to format with
|
LL | format!("{}", invalid); //~ ERROR
| ^^^^^
error: argument must be a string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:38:14
2018-08-08 12:28:26 +00:00
|
LL | include!(invalid); //~ ERROR
| ^^^^^^^
error: argument must be a string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:40:18
2018-08-08 12:28:26 +00:00
|
LL | include_str!(invalid); //~ ERROR
| ^^^^^^^
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)
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:41:5
2018-08-08 12:28:26 +00:00
|
LL | include_str!("i'd be quite surprised if a file with this name existed"); //~ ERROR
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: argument must be a string literal
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:42:20
2018-08-08 12:28:26 +00:00
|
LL | include_bytes!(invalid); //~ ERROR
| ^^^^^^^
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)
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:43:5
2018-08-08 12:28:26 +00:00
|
LL | include_bytes!("i'd be quite surprised if a file with this name existed"); //~ ERROR
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: trace_macros! accepts only `true` or `false`
2018-08-14 21:42:16 +00:00
--> $DIR/macros-nonfatal-errors.rs:45:5
2018-08-08 12:28:26 +00:00
|
LL | trace_macros!(invalid); //~ ERROR
| ^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 15 previous errors
Some errors occurred: E0658, E0665.
For more information about an error, try `rustc --explain E0658`.