Skip to content

Commit 478b378

Browse files
committed
Move on impl position test to proper directory
1 parent cb31a00 commit 478b378

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

tests/ui/diagnostic_namespace/on_impl_trait.rs renamed to tests/ui/diagnostic_namespace/on_unimplemented/on_impl_trait.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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

56
trait Test {}

tests/ui/diagnostic_namespace/on_impl_trait.stderr renamed to tests/ui/diagnostic_namespace/on_unimplemented/on_impl_trait.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
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
33
|
44
LL | #[diagnostic::on_unimplemented(message = "blah", label = "blah", note = "blah")]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: `#[warn(unknown_or_malformed_diagnostic_attributes)]` on by default
88

99
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
1111
|
1212
LL | foo(&1);
1313
| --- ^^ the trait `Test` is not implemented for `{integer}`
1414
| |
1515
| required by a bound introduced by this call
1616
|
1717
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
1919
|
2020
LL | trait Test {}
2121
| ^^^^^^^^^^
2222
= note: required for `{integer}` to implement `Alias`
2323
note: required by a bound in `foo`
24-
--> $DIR/on_impl_trait.rs:12:11
24+
--> $DIR/on_impl_trait.rs:13:11
2525
|
2626
LL | fn foo<T: Alias>(v: &T) {}
2727
| ^^^^^ required by this bound in `foo`

0 commit comments

Comments
 (0)