2021-07-17 00:05:57 -05:00
|
|
|
error: the `#[default]` attribute may only be used on unit enum variants
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:14:5
|
2021-07-17 00:05:57 -05:00
|
|
|
|
|
|
|
|
LL | #[default]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[default]` attribute may only be used on unit enum variants
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:19:36
|
2021-07-17 00:05:57 -05:00
|
|
|
|
|
|
|
|
LL | struct DefaultInnerAttrTupleStruct(#[default] ());
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[default]` attribute may only be used on unit enum variants
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:23:1
|
2021-07-17 00:05:57 -05:00
|
|
|
|
|
|
|
|
LL | #[default]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[default]` attribute may only be used on unit enum variants
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:27:1
|
2021-07-17 00:05:57 -05:00
|
|
|
|
|
|
|
|
LL | #[default]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[default]` attribute may only be used on unit enum variants
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:37:11
|
2021-07-17 00:05:57 -05:00
|
|
|
|
|
|
|
|
LL | Foo = #[default] 0,
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: the `#[default]` attribute may only be used on unit enum variants
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:38:14
|
2021-07-17 00:05:57 -05:00
|
|
|
|
|
|
|
|
LL | Bar([u8; #[default] 1]),
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2021-06-29 19:22:52 -05:00
|
|
|
error: no default declared
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:43: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
|
|
|
| ^^^^^^^
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-06-29 19:22:52 -05:00
|
|
|
= help: make a unit variant default by placing `#[default]` above it
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2021-06-29 19:22:52 -05:00
|
|
|
error: multiple declared defaults
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:49:10
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(Default)]
|
|
|
|
| ^^^^^^^
|
|
|
|
...
|
|
|
|
LL | Foo,
|
|
|
|
| --- first default
|
|
|
|
LL | #[default]
|
|
|
|
LL | Bar,
|
|
|
|
| --- additional default
|
|
|
|
LL | #[default]
|
|
|
|
LL | Baz,
|
|
|
|
| --- additional default
|
|
|
|
|
|
|
|
|
= note: only one variant can be default
|
|
|
|
= note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: `#[default]` attribute does not accept a value
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:61:5
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | #[default = 1]
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: try using `#[default]`
|
|
|
|
|
|
|
|
error: multiple `#[default]` attributes
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:69:5
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | #[default]
|
|
|
|
| ---------- `#[default]` used here
|
|
|
|
LL | #[default]
|
|
|
|
| ---------- `#[default]` used again here
|
|
|
|
LL | Foo,
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: only one `#[default]` attribute is needed
|
|
|
|
help: try removing this
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:68:5
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | #[default]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: multiple `#[default]` attributes
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:79:5
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | #[default]
|
|
|
|
| ---------- `#[default]` used here
|
|
|
|
LL | #[default]
|
|
|
|
| ---------- `#[default]` used again here
|
|
|
|
...
|
|
|
|
LL | Foo,
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= note: only one `#[default]` attribute is needed
|
|
|
|
help: try removing these
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:76:5
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | #[default]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
LL | #[default]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
LL | #[default]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
2021-07-17 00:05:57 -05:00
|
|
|
error: the `#[default]` attribute may only be used on unit enum variants
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:86:5
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | Foo {},
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: consider a manual implementation of `Default`
|
|
|
|
|
|
|
|
error: default variant must be exhaustive
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:94:5
|
2021-06-29 19:22:52 -05:00
|
|
|
|
|
|
|
|
LL | #[non_exhaustive]
|
|
|
|
| ----------------- declared `#[non_exhaustive]` here
|
|
|
|
LL | Foo,
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: consider a manual implementation of `Default`
|
|
|
|
|
2020-02-20 03:19:48 -06:00
|
|
|
error: asm template must be a string literal
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:99:10
|
2020-02-20 03:19:48 -06:00
|
|
|
|
|
|
|
|
LL | asm!(invalid);
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
error: inline assembly must be a string literal
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:100:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-02-14 10:54:40 -06:00
|
|
|
LL | llvm_asm!(invalid);
|
|
|
|
| ^^^^^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2021-10-03 01:53:02 -05:00
|
|
|
error: concat_idents! requires ident args
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:102: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
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:104: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
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:105: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
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:106: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
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:107: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-05-26 18:45:30 -05:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: format argument must be a string literal
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:109: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
|
|
|
| ^^^^^^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
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);
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++++
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: argument must be a string literal
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:111: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
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:113: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)
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:114: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: argument must be a string literal
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:115: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)
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:116: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-12-16 07:56:47 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: trace_macros! accepts only `true` or `false`
|
2021-07-29 12:45:13 -05:00
|
|
|
--> $DIR/macros-nonfatal-errors.rs:118: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
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-07-17 00:05:57 -05:00
|
|
|
error: aborting due to 27 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|