-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't ICE in new solver when auto traits have associated types
- Loading branch information
1 parent
a9baa16
commit ecd7809
Showing
4 changed files
with
21 additions
and
3 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
2 changes: 1 addition & 1 deletion
2
tests/ui/auto-traits/issue-23080-2.stderr → .../auto-traits/issue-23080-2.current.stderr
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,11 @@ | ||
error[E0380]: auto traits cannot have associated items | ||
--> $DIR/issue-23080-2.rs:8:10 | ||
| | ||
LL | unsafe auto trait Trait { | ||
| ----- auto traits cannot have associated items | ||
LL | type Output; | ||
| -----^^^^^^- help: remove these associated items | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0380`. |
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