Files
rust/tests/ui/marker_trait_attr/marker-attribute-on-non-trait.stderr

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

51 lines
1.2 KiB
Plaintext
Raw Normal View History

error: `#[marker]` attribute cannot be used on structs
2018-12-25 08:56:47 -07:00
--> $DIR/marker-attribute-on-non-trait.rs:3:1
|
2019-03-09 15:03:44 +03:00
LL | #[marker]
| ^^^^^^^^^
|
= help: `#[marker]` can only be applied to traits
error: `#[marker]` attribute cannot be used on inherent impl blocks
2018-12-25 08:56:47 -07:00
--> $DIR/marker-attribute-on-non-trait.rs:6:1
|
2019-03-09 15:03:44 +03:00
LL | #[marker]
| ^^^^^^^^^
|
= help: `#[marker]` can only be applied to traits
error: `#[marker]` attribute cannot be used on unions
2018-12-25 08:56:47 -07:00
--> $DIR/marker-attribute-on-non-trait.rs:9:1
|
LL | #[marker]
| ^^^^^^^^^
|
= help: `#[marker]` can only be applied to traits
error: `#[marker]` attribute cannot be used on constants
2018-12-25 08:56:47 -07:00
--> $DIR/marker-attribute-on-non-trait.rs:14:1
|
2019-03-09 15:03:44 +03:00
LL | #[marker]
| ^^^^^^^^^
|
= help: `#[marker]` can only be applied to traits
error: `#[marker]` attribute cannot be used on functions
2018-12-25 08:56:47 -07:00
--> $DIR/marker-attribute-on-non-trait.rs:17:1
|
2019-03-09 15:03:44 +03:00
LL | #[marker]
| ^^^^^^^^^
|
= help: `#[marker]` can only be applied to traits
error: `#[marker]` attribute cannot be used on type aliases
2018-12-25 08:56:47 -07:00
--> $DIR/marker-attribute-on-non-trait.rs:20:1
|
2019-03-09 15:03:44 +03:00
LL | #[marker]
| ^^^^^^^^^
|
= help: `#[marker]` can only be applied to traits
error: aborting due to 6 previous errors