Add test for issue-75983
This commit is contained in:
parent
23092c7491
commit
59cc9de039
1 changed files with 17 additions and 0 deletions
17
src/test/ui/traits/trait-alias/issue-75983.rs
Normal file
17
src/test/ui/traits/trait-alias/issue-75983.rs
Normal file
|
@ -0,0 +1,17 @@
|
|||
// check-pass
|
||||
|
||||
#![feature(trait_alias)]
|
||||
|
||||
struct Bar;
|
||||
trait Foo {}
|
||||
impl Foo for Bar {}
|
||||
|
||||
trait Baz = Foo where Bar: Foo;
|
||||
|
||||
fn new() -> impl Baz {
|
||||
Bar
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let _ = new();
|
||||
}
|
Loading…
Add table
Reference in a new issue