forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#123737 - compiler-errors:alias-wf, r=<try>
Check alias args for WF even if they have escaping bound vars r? `@ghost`
- Loading branch information
Showing
4 changed files
with
37 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
error[E0277]: the trait bound `TFsm: Fsm` is not satisfied | ||
--> $DIR/issue-80409.rs:25:26 | ||
| | ||
LL | fn on_entry<TAction: Fn(&mut StateContext<'_, TFsm>)>(&self, _action: TAction) {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Fsm` is not implemented for `TFsm` | ||
| | ||
note: required by a bound in `StateContext` | ||
--> $DIR/issue-80409.rs:33:31 | ||
| | ||
LL | struct StateContext<'a, TFsm: Fsm> { | ||
| ^^^ required by this bound in `StateContext` | ||
help: consider restricting type parameter `TFsm` | ||
| | ||
LL | impl<TFsm: Fsm> FsmStateBuilder<TFsm> { | ||
| +++++ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0277`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
error: internal compiler error: error performing operation: fully_perform | ||
--> $DIR/issue-80409.rs:49:30 | ||
error[E0277]: the trait bound `TFsm: Fsm` is not satisfied | ||
--> $DIR/issue-80409.rs:25:26 | ||
| | ||
LL | builder.state().on_entry(|_| {}); | ||
| ^^^ | ||
LL | fn on_entry<TAction: Fn(&mut StateContext<'_, TFsm>)>(&self, _action: TAction) {} | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Fsm` is not implemented for `TFsm` | ||
| | ||
note: | ||
--> $DIR/issue-80409.rs:49:30 | ||
note: required by a bound in `StateContext` | ||
--> $DIR/issue-80409.rs:33:31 | ||
| | ||
LL | builder.state().on_entry(|_| {}); | ||
| ^^^ | ||
LL | struct StateContext<'a, TFsm: Fsm> { | ||
| ^^^ required by this bound in `StateContext` | ||
help: consider restricting type parameter `TFsm` | ||
| | ||
LL | impl<TFsm: Fsm> FsmStateBuilder<TFsm> { | ||
| +++++ | ||
|
||
error: aborting due to 1 previous error | ||
|
||
query stack during panic: | ||
end of query stack | ||
For more information about this error, try `rustc --explain E0277`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters