Skip to content

Commit 2ca350c

Browse files
committed
Bless some extra working tests under -Zlower-impl-trait-in-trait-to-assoc-ty
1 parent 6671465 commit 2ca350c

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

tests/ui/impl-trait/in-trait/nested-rpitit.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
// check-pass
2+
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
3+
// revisions: current next
24

35
#![feature(return_position_impl_trait_in_trait)]
46
#![allow(incomplete_features)]

tests/ui/rfc-1937-termination-trait/issue-103052-2.stderr renamed to tests/ui/rfc-1937-termination-trait/issue-103052-2.current.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0277]: the trait bound `Something: Termination` is not satisfied
2-
--> $DIR/issue-103052-2.rs:12:22
2+
--> $DIR/issue-103052-2.rs:15:22
33
|
44
LL | fn main() -> Something {
55
| ^^^^^^^^^ the trait `Termination` is not implemented for `Something`
66
|
77
note: required by a bound in `Main::main::{opaque#0}`
8-
--> $DIR/issue-103052-2.rs:6:27
8+
--> $DIR/issue-103052-2.rs:9:27
99
|
1010
LL | fn main() -> impl std::process::Termination;
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Main::main::{opaque#0}`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
error[E0277]: the trait bound `Something: Termination` is not satisfied
2+
--> $DIR/issue-103052-2.rs:15:22
3+
|
4+
LL | fn main() -> Something {
5+
| ^^^^^^^^^ the trait `Termination` is not implemented for `Something`
6+
|
7+
note: required by a bound in `Main::{opaque#0}`
8+
--> $DIR/issue-103052-2.rs:9:27
9+
|
10+
LL | fn main() -> impl std::process::Termination;
11+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Main::{opaque#0}`
12+
13+
error: aborting due to previous error
14+
15+
For more information about this error, try `rustc --explain E0277`.

tests/ui/rfc-1937-termination-trait/issue-103052-2.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
2+
// revisions: current next
3+
14
#![feature(return_position_impl_trait_in_trait)]
25
#![allow(incomplete_features)]
36

@@ -9,7 +12,8 @@ mod child {
912
struct Something;
1013

1114
impl Main for () {
12-
fn main() -> Something { //~ ERROR the trait bound `Something: Termination` is not satisfied
15+
fn main() -> Something {
16+
//~^ ERROR the trait bound `Something: Termination` is not satisfied
1317
Something
1418
}
1519
}

0 commit comments

Comments
 (0)