Bless some extra working tests under -Zlower-impl-trait-in-trait-to-assoc-ty
This commit is contained in:
parent
66714658d0
commit
2ca350c776
@ -1,4 +1,6 @@
|
||||
// check-pass
|
||||
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
|
||||
// revisions: current next
|
||||
|
||||
#![feature(return_position_impl_trait_in_trait)]
|
||||
#![allow(incomplete_features)]
|
||||
|
@ -1,11 +1,11 @@
|
||||
error[E0277]: the trait bound `Something: Termination` is not satisfied
|
||||
--> $DIR/issue-103052-2.rs:12:22
|
||||
--> $DIR/issue-103052-2.rs:15:22
|
||||
|
|
||||
LL | fn main() -> Something {
|
||||
| ^^^^^^^^^ the trait `Termination` is not implemented for `Something`
|
||||
|
|
||||
note: required by a bound in `Main::main::{opaque#0}`
|
||||
--> $DIR/issue-103052-2.rs:6:27
|
||||
--> $DIR/issue-103052-2.rs:9:27
|
||||
|
|
||||
LL | fn main() -> impl std::process::Termination;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Main::main::{opaque#0}`
|
@ -0,0 +1,15 @@
|
||||
error[E0277]: the trait bound `Something: Termination` is not satisfied
|
||||
--> $DIR/issue-103052-2.rs:15:22
|
||||
|
|
||||
LL | fn main() -> Something {
|
||||
| ^^^^^^^^^ the trait `Termination` is not implemented for `Something`
|
||||
|
|
||||
note: required by a bound in `Main::{opaque#0}`
|
||||
--> $DIR/issue-103052-2.rs:9:27
|
||||
|
|
||||
LL | fn main() -> impl std::process::Termination;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Main::{opaque#0}`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0277`.
|
@ -1,3 +1,6 @@
|
||||
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
|
||||
// revisions: current next
|
||||
|
||||
#![feature(return_position_impl_trait_in_trait)]
|
||||
#![allow(incomplete_features)]
|
||||
|
||||
@ -9,7 +12,8 @@ mod child {
|
||||
struct Something;
|
||||
|
||||
impl Main for () {
|
||||
fn main() -> Something { //~ ERROR the trait bound `Something: Termination` is not satisfied
|
||||
fn main() -> Something {
|
||||
//~^ ERROR the trait bound `Something: Termination` is not satisfied
|
||||
Something
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user