Files
rust/tests/ui/stability-attribute/stability-attribute-sanity-2.stderr
Esteban Küber b849e10d38 Make span_suggestions always verbose
`span_suggestions` is to provide mutually exclusive suggestions. When it was introduced, we made its behavior be that if a single suggestion is given to it, we present the suggestion inline, otherwise in patch format. Changing this to make all of its uses be verbose, as that is closer in intent of output.
2026-04-15 01:38:14 +00:00

41 lines
1.4 KiB
Plaintext

error[E0538]: malformed `stable` attribute input
--> $DIR/stability-attribute-sanity-2.rs:7:1
|
LL | #[stable(feature = "a", feature = "b", since = "1.0.0")]
| ^^^^^^^^^^^^^^^^^^^^^^^^-------^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| found `feature` used as a key more than once
|
help: must be of the form
|
LL - #[stable(feature = "a", feature = "b", since = "1.0.0")]
LL + #[stable(feature = "name", since = "version")]
|
error[E0539]: malformed `stable` attribute input
--> $DIR/stability-attribute-sanity-2.rs:10:1
|
LL | #[stable(feature = "a", sinse = "1.0.0")]
| ^^^^^^^^^^^^^^^^^^^^^^^^---------------^^
| |
| valid arguments are `feature` or `since`
|
help: must be of the form
|
LL - #[stable(feature = "a", sinse = "1.0.0")]
LL + #[stable(feature = "name", since = "version")]
|
error[E0545]: `issue` must be a non-zero numeric string or "none"
--> $DIR/stability-attribute-sanity-2.rs:13:27
|
LL | #[unstable(feature = "a", issue = "no")]
| ^^^^^^^^----
| |
| invalid digit found in string
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0538, E0539, E0545.
For more information about an error, try `rustc --explain E0538`.