Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not ICE in
type-alias-impl-trait
with save-analysis
- Loading branch information
Showing
3 changed files
with
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// compile-flags: -Zsave-analysis | ||
|
||
#![feature(type_alias_impl_trait)] | ||
|
||
trait Trait {} | ||
|
||
trait Service { | ||
type Future: Trait; | ||
} | ||
|
||
struct Struct; | ||
|
||
impl Service for Struct { | ||
type Future = impl Trait; //~ ERROR: could not find defining uses | ||
} | ||
|
||
fn main() {} |
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,8 @@ | ||
error: could not find defining uses | ||
--> $DIR/issue-68621.rs:14:5 | ||
| | ||
LL | type Future = impl Trait; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|