-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #110986 - cjgillot:delay-feed-bug, r=WaffleLapkin
Delay a bug when overwriting fed value. Fixes #110887
- Loading branch information
Showing
3 changed files
with
46 additions
and
15 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
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,17 @@ | ||
// Verify that we do not ICE when we try to overwrite an anon-const's type because of a trait | ||
// cycle. | ||
// | ||
// compile-flags: -Zincremental-ignore-spans | ||
// revisions: cpass cfail | ||
// error-pattern: cycle detected when computing type of `Bar::N` | ||
|
||
#![feature(trait_alias)] | ||
#![crate_type="lib"] | ||
|
||
#[cfg(cpass)] | ||
trait Bar<const N: usize> {} | ||
|
||
#[cfg(cfail)] | ||
trait Bar<const N: dyn BB> {} | ||
|
||
trait BB = Bar<{ 2 + 1 }>; |