2020-08-27 20:00:21 +10:00
|
|
|
error: `#[derive(SessionDiagnostic)]` can only be used on structs
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:37:1
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
LL | / #[error(code = "E0123", slug = "foo")]
|
2020-11-18 11:18:40 +01:00
|
|
|
LL | |
|
|
|
|
LL | | enum SessionDiagnosticOnEnum {
|
|
|
|
LL | | Foo,
|
|
|
|
LL | | Bar,
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[error = ...]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:46:1
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
LL | #[error = "E0123"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[nonsense(...)]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:51:1
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[nonsense(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-27 04:06:13 +01:00
|
|
|
|
|
|
|
|
= help: only `error` and `warning` are valid attributes
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
error: diagnostic kind not specified
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:51:1
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | / #[nonsense(code = "E0123", slug = "foo")]
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct InvalidStructAttr {}
|
|
|
|
| |___________________________^
|
|
|
|
|
|
|
|
|
= help: use the `#[error(...)]` attribute to create an error
|
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[error("...")]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:58:9
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error("E0123")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: `slug` not specified
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:58:1
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | / #[error("E0123")]
|
|
|
|
LL | |
|
|
|
|
LL | |
|
|
|
|
LL | | struct InvalidLitNestedAttr {}
|
|
|
|
| |______________________________^
|
|
|
|
|
|
|
|
|
= help: use the `#[error(slug = "...")]` attribute to set this diagnostic's slug
|
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[error(nonsense)]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:64:9
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(nonsense, code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[error(nonsense(...))]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:69:9
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(nonsense("foo"), code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[error(nonsense = ...)]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:74:9
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(nonsense = "...", code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-04-27 04:06:13 +01:00
|
|
|
|
|
|
|
|
= help: only `slug` and `code` are valid nested attributes
|
2022-03-31 08:35:17 +01:00
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[error(nonsense = ...)]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:79:9
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(nonsense = 4, code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^^^^^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[suggestion = ...]` is not a valid attribute
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:86:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 13:10:13 +01:00
|
|
|
LL | #[suggestion = "bar"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2022-04-27 04:06:13 +01:00
|
|
|
|
|
|
|
|
= help: only `label`, `note` and `help` are valid field attributes
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 04:28:21 +01:00
|
|
|
error: specified multiple times
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:93:1
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(code = "E0456", slug = "bar")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:92:1
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
LL | #[error(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 04:28:21 +01:00
|
|
|
error: specified multiple times
|
|
|
|
--> $DIR/diagnostic-derive.rs:93:16
|
|
|
|
|
|
|
|
|
LL | #[error(code = "E0456", slug = "bar")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
|
|
|
--> $DIR/diagnostic-derive.rs:92:16
|
|
|
|
|
|
|
|
|
LL | #[error(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: specified multiple times
|
|
|
|
--> $DIR/diagnostic-derive.rs:93:32
|
|
|
|
|
|
|
|
|
LL | #[error(code = "E0456", slug = "bar")]
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
|
|
|
--> $DIR/diagnostic-derive.rs:92:32
|
|
|
|
|
|
|
|
|
LL | #[error(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: specified multiple times
|
|
|
|
--> $DIR/diagnostic-derive.rs:101:1
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
LL | #[warning(code = "E0293", slug = "bar")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:100:1
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-04-27 04:28:21 +01:00
|
|
|
error: specified multiple times
|
|
|
|
--> $DIR/diagnostic-derive.rs:101:18
|
|
|
|
|
|
|
|
|
LL | #[warning(code = "E0293", slug = "bar")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
|
|
|
--> $DIR/diagnostic-derive.rs:100:16
|
|
|
|
|
|
|
|
|
LL | #[error(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: specified multiple times
|
|
|
|
--> $DIR/diagnostic-derive.rs:101:34
|
|
|
|
|
|
|
|
|
LL | #[warning(code = "E0293", slug = "bar")]
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
|
|
|
--> $DIR/diagnostic-derive.rs:100:32
|
|
|
|
|
|
|
|
|
LL | #[error(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: specified multiple times
|
|
|
|
--> $DIR/diagnostic-derive.rs:108:32
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(code = "E0456", code = "E0457", slug = "bar")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:108:16
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(code = "E0456", code = "E0457", slug = "bar")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
2022-04-27 04:28:21 +01:00
|
|
|
error: specified multiple times
|
|
|
|
--> $DIR/diagnostic-derive.rs:113:46
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(code = "E0456", slug = "foo", slug = "bar")]
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: previously specified here
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:113:32
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[error(code = "E0456", slug = "foo", slug = "bar")]
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: diagnostic kind not specified
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:118:1
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | struct KindNotProvided {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: use the `#[error(...)]` attribute to create an error
|
|
|
|
|
|
|
|
error: `slug` not specified
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:121:1
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | / #[error(code = "E0456")]
|
|
|
|
LL | | struct SlugNotProvided {}
|
|
|
|
| |_________________________^
|
|
|
|
|
|
|
|
|
= help: use the `#[error(slug = "...")]` attribute to set this diagnostic's slug
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-03-31 08:50:45 +01:00
|
|
|
error: the `#[primary_span]` attribute can only be applied to fields of type `Span`
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:131:5
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
2022-03-31 08:50:45 +01:00
|
|
|
LL | #[primary_span]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-03-31 08:35:17 +01:00
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[nonsense]` is not a valid attribute
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:139:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
LL | #[nonsense]
|
|
|
|
| ^^^^^^^^^^^
|
2022-04-27 04:06:13 +01:00
|
|
|
|
|
2022-04-27 05:59:48 +01:00
|
|
|
= help: only `skip_arg`, `primary_span`, `label`, `note`, `help` and `subdiagnostic` are valid field attributes
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
error: the `#[label = ...]` attribute can only be applied to fields of type `Span`
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:156:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 10:24:46 +01:00
|
|
|
LL | #[label = "bar"]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
|
|
error: `name` doesn't refer to a field on this type
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:164:42
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 13:10:13 +01:00
|
|
|
LL | #[suggestion(message = "bar", code = "{name}")]
|
|
|
|
| ^^^^^^^^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
|
|
error: invalid format string: expected `'}'` but string was terminated
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:169:16
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | #[derive(SessionDiagnostic)]
|
2022-03-31 10:24:46 +01:00
|
|
|
| - ^ expected `'}'` in format string
|
|
|
|
| |
|
|
|
|
| because of this opening brace
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
|
|
|
= note: if you intended to print `{`, you can escape it using `{{`
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the derive macro `SessionDiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
|
|
error: invalid format string: unmatched `}` found
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:179:15
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | #[derive(SessionDiagnostic)]
|
2022-03-31 10:24:46 +01:00
|
|
|
| ^ unmatched `}` in format string
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
|
|
|
= note: if you intended to print `}`, you can escape it using `}}`
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the derive macro `SessionDiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
error: the `#[label = ...]` attribute can only be applied to fields of type `Span`
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:199:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 10:24:46 +01:00
|
|
|
LL | #[label = "bar"]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[suggestion(nonsense = ...)]` is not a valid attribute
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:224:18
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 13:10:13 +01:00
|
|
|
LL | #[suggestion(nonsense = "bar")]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2022-04-27 04:06:13 +01:00
|
|
|
|
|
2022-04-27 05:43:36 +01:00
|
|
|
= help: only `message`, `code` and `applicability` are valid field attributes
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[suggestion(msg = ...)]` is not a valid attribute
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:232:18
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 13:10:13 +01:00
|
|
|
LL | #[suggestion(msg = "bar")]
|
|
|
|
| ^^^^^^^^^^^
|
2022-04-27 04:06:13 +01:00
|
|
|
|
|
2022-04-27 05:43:36 +01:00
|
|
|
= help: only `message`, `code` and `applicability` are valid field attributes
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
|
|
error: wrong field type for suggestion
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:254:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 13:10:13 +01:00
|
|
|
LL | / #[suggestion(message = "bar", code = "This is suggested code")]
|
2020-11-18 11:18:40 +01:00
|
|
|
LL | |
|
|
|
|
LL | | suggestion: Applicability,
|
|
|
|
| |_____________________________^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-30 10:04:03 +01:00
|
|
|
= help: `#[suggestion(...)]` should be applied to fields of type `Span` or `(Span, Applicability)`
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-03-30 10:04:03 +01:00
|
|
|
error: type of field annotated with `#[suggestion(...)]` contains more than one `Span`
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:269:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 13:10:13 +01:00
|
|
|
LL | / #[suggestion(message = "bar", code = "This is suggested code")]
|
2020-11-18 11:18:40 +01:00
|
|
|
LL | |
|
|
|
|
LL | | suggestion: (Span, Span, Applicability),
|
|
|
|
| |___________________________________________^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
|
|
error: type of field annotated with `#[suggestion(...)]` contains more than one Applicability
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:277:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 13:10:13 +01:00
|
|
|
LL | / #[suggestion(message = "bar", code = "This is suggested code")]
|
2020-11-18 11:18:40 +01:00
|
|
|
LL | |
|
|
|
|
LL | | suggestion: (Applicability, Applicability, Span),
|
|
|
|
| |____________________________________________________^
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 04:06:13 +01:00
|
|
|
error: `#[label(...)]` is not a valid attribute
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:285:5
|
2020-08-27 20:00:21 +10:00
|
|
|
|
|
2022-03-31 10:24:46 +01:00
|
|
|
LL | #[label("bar")]
|
2022-03-31 13:10:13 +01:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2022-04-27 04:06:13 +01:00
|
|
|
|
|
|
|
|
= help: only `suggestion{,_short,_hidden,_verbose}` are valid field attributes
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-04-27 05:43:36 +01:00
|
|
|
error: applicability cannot be set in both the field and attribute
|
2022-05-24 15:09:47 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:436:49
|
2022-04-27 05:43:36 +01:00
|
|
|
|
|
|
|
|
LL | #[suggestion(message = "bar", code = "...", applicability = "maybe-incorrect")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: invalid applicability
|
2022-05-24 15:09:47 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:444:49
|
2022-04-27 05:43:36 +01:00
|
|
|
|
|
|
|
|
LL | #[suggestion(message = "bar", code = "...", applicability = "batman")]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-03-31 08:35:17 +01:00
|
|
|
error: cannot find attribute `nonsense` in this scope
|
2022-04-26 06:41:31 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:51:3
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[nonsense(code = "E0123", slug = "foo")]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: cannot find attribute `nonsense` in this scope
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:139:7
|
2022-03-31 08:35:17 +01:00
|
|
|
|
|
|
|
|
LL | #[nonsense]
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
2022-05-07 07:26:03 +01:00
|
|
|
error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied
|
2022-04-27 04:28:21 +01:00
|
|
|
--> $DIR/diagnostic-derive.rs:329:10
|
2022-03-31 09:02:31 +01:00
|
|
|
|
|
|
|
|
LL | #[derive(SessionDiagnostic)]
|
2022-05-07 07:26:03 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello`
|
|
|
|
|
|
|
|
|
= help: the following other types implement trait `IntoDiagnosticArg`:
|
|
|
|
&'a str
|
|
|
|
Ident
|
|
|
|
String
|
|
|
|
Symbol
|
|
|
|
rustc_middle::ty::Ty<'tcx>
|
|
|
|
usize
|
|
|
|
note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
|
2022-05-24 15:09:47 +01:00
|
|
|
--> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:538:19
|
2022-05-07 07:26:03 +01:00
|
|
|
|
|
|
|
|
LL | arg: impl IntoDiagnosticArg,
|
|
|
|
| ^^^^^^^^^^^^^^^^^ required by this bound in `DiagnosticBuilder::<'a, G>::set_arg`
|
2022-03-31 09:02:31 +01:00
|
|
|
= note: this error originates in the derive macro `SessionDiagnostic` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2022-05-24 15:09:47 +01:00
|
|
|
error: aborting due to 39 previous errors
|
2020-08-27 20:00:21 +10:00
|
|
|
|
2022-05-07 07:26:03 +01:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|