File tree Expand file tree Collapse file tree 4 files changed +24
-3
lines changed
rfc-1937-termination-trait Expand file tree Collapse file tree 4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 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) ]
Original file line number Diff line number Diff line change 11error[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 |
44LL | fn main() -> Something {
55 | ^^^^^^^^^ the trait `Termination` is not implemented for `Something`
66 |
77note: 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 |
1010LL | fn main() -> impl std::process::Termination;
1111 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Main::main::{opaque#0}`
Original file line number Diff line number Diff line change 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`.
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments