Move on impl position test to proper directory
This commit is contained in:
parent
cb31a009e3
commit
478b3789ce
2 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// used to ICE, see <https://github.com/rust-lang/rust/issues/130627>
|
||||
// Instead it should just ignore the diagnostic attribute
|
||||
//! used to ICE, see <https://github.com/rust-lang/rust/issues/130627>
|
||||
//! Instead it should just ignore the diagnostic attribute
|
||||
|
||||
#![feature(trait_alias)]
|
||||
|
||||
trait Test {}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
warning: `#[diagnostic::on_unimplemented]` can only be applied to trait definitions
|
||||
--> $DIR/on_impl_trait.rs:7:1
|
||||
--> $DIR/on_impl_trait.rs:8:1
|
||||
|
|
||||
LL | #[diagnostic::on_unimplemented(message = "blah", label = "blah", note = "blah")]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
@ -7,7 +7,7 @@ LL | #[diagnostic::on_unimplemented(message = "blah", label = "blah", note = "bl
|
|||
= note: `#[warn(unknown_or_malformed_diagnostic_attributes)]` on by default
|
||||
|
||||
error[E0277]: the trait bound `{integer}: Alias` is not satisfied
|
||||
--> $DIR/on_impl_trait.rs:15:9
|
||||
--> $DIR/on_impl_trait.rs:16:9
|
||||
|
|
||||
LL | foo(&1);
|
||||
| --- ^^ the trait `Test` is not implemented for `{integer}`
|
||||
|
|
@ -15,13 +15,13 @@ LL | foo(&1);
|
|||
| required by a bound introduced by this call
|
||||
|
|
||||
help: this trait has no implementations, consider adding one
|
||||
--> $DIR/on_impl_trait.rs:5:1
|
||||
--> $DIR/on_impl_trait.rs:6:1
|
||||
|
|
||||
LL | trait Test {}
|
||||
| ^^^^^^^^^^
|
||||
= note: required for `{integer}` to implement `Alias`
|
||||
note: required by a bound in `foo`
|
||||
--> $DIR/on_impl_trait.rs:12:11
|
||||
--> $DIR/on_impl_trait.rs:13:11
|
||||
|
|
||||
LL | fn foo<T: Alias>(v: &T) {}
|
||||
| ^^^^^ required by this bound in `foo`
|
||||
Loading…
Add table
Add a link
Reference in a new issue