File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
tests/ui/diagnostic_namespace/on_unimplemented Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1- // used to ICE, see <https://github.com/rust-lang/rust/issues/130627>
2- // Instead it should just ignore the diagnostic attribute
1+ //! used to ICE, see <https://github.com/rust-lang/rust/issues/130627>
2+ //! Instead it should just ignore the diagnostic attribute
3+
34#![ feature( trait_alias) ]
45
56trait Test { }
Original file line number Diff line number Diff line change 11warning: `#[diagnostic::on_unimplemented]` can only be applied to trait definitions
2- --> $DIR/on_impl_trait.rs:7 :1
2+ --> $DIR/on_impl_trait.rs:8 :1
33 |
44LL | #[diagnostic::on_unimplemented(message = "blah", label = "blah", note = "blah")]
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
77 = note: `#[warn(unknown_or_malformed_diagnostic_attributes)]` on by default
88
99error[E0277]: the trait bound `{integer}: Alias` is not satisfied
10- --> $DIR/on_impl_trait.rs:15 :9
10+ --> $DIR/on_impl_trait.rs:16 :9
1111 |
1212LL | foo(&1);
1313 | --- ^^ the trait `Test` is not implemented for `{integer}`
1414 | |
1515 | required by a bound introduced by this call
1616 |
1717help: this trait has no implementations, consider adding one
18- --> $DIR/on_impl_trait.rs:5 :1
18+ --> $DIR/on_impl_trait.rs:6 :1
1919 |
2020LL | trait Test {}
2121 | ^^^^^^^^^^
2222 = note: required for `{integer}` to implement `Alias`
2323note: required by a bound in `foo`
24- --> $DIR/on_impl_trait.rs:12 :11
24+ --> $DIR/on_impl_trait.rs:13 :11
2525 |
2626LL | fn foo<T: Alias>(v: &T) {}
2727 | ^^^^^ required by this bound in `foo`
You can’t perform that action at this time.
0 commit comments