Suppress unstable-trait notes under -Zforce-unstable-if-unmarked
This commit is contained in:
parent
0f5c2215ad
commit
125e69e862
3 changed files with 14 additions and 12 deletions
|
|
@ -2,7 +2,7 @@ error[E0277]: the trait bound `(): LocalTrait` is not satisfied
|
|||
--> $DIR/nightly-only-unstable.rs:25:21
|
||||
|
|
||||
LL | use_local_trait(());
|
||||
| --------------- ^^ the nightly-only, unstable trait `LocalTrait` is not implemented for `()`
|
||||
| --------------- ^^ the trait `LocalTrait` is not implemented for `()`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
|
|
@ -21,7 +21,7 @@ error[E0277]: the trait bound `(): ForeignTrait` is not satisfied
|
|||
--> $DIR/nightly-only-unstable.rs:31:23
|
||||
|
|
||||
LL | use_foreign_trait(());
|
||||
| ----------------- ^^ the nightly-only, unstable trait `ForeignTrait` is not implemented for `()`
|
||||
| ----------------- ^^ the trait `ForeignTrait` is not implemented for `()`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
|
|
|
|||
|
|
@ -25,12 +25,12 @@ fn main() {
|
|||
use_local_trait(());
|
||||
//~^ ERROR the trait bound `(): LocalTrait` is not satisfied
|
||||
//[normal]~| NOTE the trait `LocalTrait` is not implemented for `()`
|
||||
//[force]~| NOTE the nightly-only, unstable trait `LocalTrait` is not implemented for `()`
|
||||
//[force]~| NOTE the trait `LocalTrait` is not implemented for `()`
|
||||
//~| NOTE required by a bound introduced by this call
|
||||
|
||||
use_foreign_trait(());
|
||||
//~^ ERROR the trait bound `(): ForeignTrait` is not satisfied
|
||||
//[normal]~| NOTE the nightly-only, unstable trait `ForeignTrait` is not implemented for `()`
|
||||
//[force]~| NOTE the nightly-only, unstable trait `ForeignTrait` is not implemented for `()`
|
||||
//[force]~| NOTE the trait `ForeignTrait` is not implemented for `()`
|
||||
//~| NOTE required by a bound introduced by this call
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue