File tree 2 files changed +7
-6
lines changed
tests/ui/diagnostic_namespace/on_unimplemented
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
+
3
4
#![ feature( trait_alias) ]
4
5
5
6
trait Test { }
Original file line number Diff line number Diff line change 1
1
warning: `#[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
3
3
|
4
4
LL | #[diagnostic::on_unimplemented(message = "blah", label = "blah", note = "blah")]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
7
= note: `#[warn(unknown_or_malformed_diagnostic_attributes)]` on by default
8
8
9
9
error[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
11
11
|
12
12
LL | foo(&1);
13
13
| --- ^^ the trait `Test` is not implemented for `{integer}`
14
14
| |
15
15
| required by a bound introduced by this call
16
16
|
17
17
help: this trait has no implementations, consider adding one
18
- --> $DIR/on_impl_trait.rs:5 :1
18
+ --> $DIR/on_impl_trait.rs:6 :1
19
19
|
20
20
LL | trait Test {}
21
21
| ^^^^^^^^^^
22
22
= note: required for `{integer}` to implement `Alias`
23
23
note: required by a bound in `foo`
24
- --> $DIR/on_impl_trait.rs:12 :11
24
+ --> $DIR/on_impl_trait.rs:13 :11
25
25
|
26
26
LL | fn foo<T: Alias>(v: &T) {}
27
27
| ^^^^^ required by this bound in `foo`
You can’t perform that action at this time.
0 commit comments