-
Notifications
You must be signed in to change notification settings - Fork 13k
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 #115850 - compiler-errors:effect-canon, r=fee1-dead
Canonicalize effect vars in new solver No good reason not to fix this, we already have all the machinery to make this work. r? `@fee1-dead` Fixes #115792
- Loading branch information
Showing
4 changed files
with
47 additions
and
2 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
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,22 @@ | ||
// compile-flags: -Ztrait-solver=next | ||
// check-pass | ||
|
||
#![feature(effects)] | ||
#![feature(const_trait_impl)] | ||
|
||
#[const_trait] | ||
trait Foo { | ||
fn foo(); | ||
} | ||
|
||
trait Bar {} | ||
|
||
impl const Foo for i32 { | ||
fn foo() {} | ||
} | ||
|
||
impl<T> const Foo for T where T: Bar { | ||
fn foo() {} | ||
} | ||
|
||
fn main() {} |