rust/tests/ui/parser/assoc-static-semantic-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

182 lines
5.6 KiB
Plaintext
Raw Normal View History

2020-02-14 18:50:26 -06:00
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:10:5
2020-02-14 18:50:26 -06:00
|
LL | static IA: u8 = 0;
| ^^^^^^^^^^^^^^^^^^
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:12:5
2020-02-14 18:50:26 -06:00
|
LL | static IB: u8;
| ^^^^^^^^^^^^^^
error: a static item cannot be `default`
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:15:5
|
LL | default static IC: u8 = 0;
| ^^^^^^^ `default` because of this
|
= note: only associated `fn`, `const`, and `type` items can be `default`
2020-02-14 18:50:26 -06:00
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:15:5
2020-02-14 18:50:26 -06:00
|
LL | default static IC: u8 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: a static item cannot be `default`
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:18:16
|
LL | pub(crate) default static ID: u8;
| ^^^^^^^ `default` because of this
|
= note: only associated `fn`, `const`, and `type` items can be `default`
2020-02-14 18:50:26 -06:00
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:18:5
2020-02-14 18:50:26 -06:00
|
LL | pub(crate) default static ID: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:25:5
2020-02-14 18:50:26 -06:00
|
LL | static TA: u8 = 0;
| ^^^^^^^^^^^^^^^^^^
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:27:5
2020-02-14 18:50:26 -06:00
|
LL | static TB: u8;
| ^^^^^^^^^^^^^^
error: a static item cannot be `default`
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:29:5
|
LL | default static TC: u8 = 0;
| ^^^^^^^ `default` because of this
|
= note: only associated `fn`, `const`, and `type` items can be `default`
2020-02-14 18:50:26 -06:00
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:29:5
2020-02-14 18:50:26 -06:00
|
LL | default static TC: u8 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: a static item cannot be `default`
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:32:16
|
LL | pub(crate) default static TD: u8;
| ^^^^^^^ `default` because of this
|
= note: only associated `fn`, `const`, and `type` items can be `default`
2020-02-14 18:50:26 -06:00
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:32:5
2020-02-14 18:50:26 -06:00
|
LL | pub(crate) default static TD: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:39:5
2020-02-14 18:50:26 -06:00
|
LL | static TA: u8 = 0;
| ^^^^^^^^^^^^^^^^^^
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:41:5
2020-02-14 18:50:26 -06:00
|
LL | static TB: u8;
| ^^^^^^^^^^^^^^
error: a static item cannot be `default`
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:44:5
|
LL | default static TC: u8 = 0;
| ^^^^^^^ `default` because of this
|
= note: only associated `fn`, `const`, and `type` items can be `default`
2020-02-14 18:50:26 -06:00
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:44:5
2020-02-14 18:50:26 -06:00
|
LL | default static TC: u8 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error: a static item cannot be `default`
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:47:9
|
LL | pub default static TD: u8;
| ^^^^^^^ `default` because of this
|
= note: only associated `fn`, `const`, and `type` items can be `default`
error: associated `static` items are not allowed
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:47:5
2020-02-14 18:50:26 -06:00
|
LL | pub default static TD: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2020-02-14 18:50:26 -06:00
error: associated constant in `impl` without body
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:12:5
|
LL | static IB: u8;
| ^^^^^^^^^^^^^-
| |
| help: provide a definition for the constant: `= <expr>;`
error: associated constant in `impl` without body
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:18:5
|
LL | pub(crate) default static ID: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
| |
| help: provide a definition for the constant: `= <expr>;`
error[E0449]: visibility qualifiers are not permitted here
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:32:5
|
LL | pub(crate) default static TD: u8;
| ^^^^^^^^^^
|
= note: trait items always share the visibility of their trait
error: associated constant in `impl` without body
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:41:5
|
LL | static TB: u8;
| ^^^^^^^^^^^^^-
| |
| help: provide a definition for the constant: `= <expr>;`
error: associated constant in `impl` without body
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:47:5
|
LL | pub default static TD: u8;
| ^^^^^^^^^^^^^^^^^^^^^^^^^-
| |
| help: provide a definition for the constant: `= <expr>;`
error[E0449]: visibility qualifiers are not permitted here
2020-06-16 03:06:35 -05:00
--> $DIR/assoc-static-semantic-fail.rs:47:5
2020-02-14 18:50:26 -06:00
|
LL | pub default static TD: u8;
| ^^^
|
= note: trait items always share the visibility of their trait
2020-02-14 18:50:26 -06:00
2020-06-16 03:06:35 -05:00
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/assoc-static-semantic-fail.rs:3:12
|
LL | #![feature(specialization)]
| ^^^^^^^^^^^^^^
|
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
= help: consider using `min_specialization` instead, which is more stable and complete
2022-09-18 10:55:36 -05:00
= note: `#[warn(incomplete_features)]` on by default
2020-06-16 03:06:35 -05:00
error: aborting due to 24 previous errors; 1 warning emitted
2020-02-14 18:50:26 -06:00
For more information about this error, try `rustc --explain E0449`.