Skip to content

Commit

Permalink
Add test for issue rust-lang#79949
Browse files Browse the repository at this point in the history
  • Loading branch information
marmeladema committed Apr 20, 2021
1 parent 6df26f8 commit b6647b5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/test/ui/associated-type-bounds/issue-79949.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// check-pass

#![allow(incomplete_features)]
#![feature(associated_type_bounds)]
#![feature(generic_associated_types)]

trait MP {
type T<'a>;
}
struct S(String);
impl MP for S {
type T<'a> = &'a str;
}

trait SR: MP {
fn sr<IM>(&self) -> i32
where
for<'a> IM: T<T: U<<Self as MP>::T<'a>>>;
}

trait T {
type T;
}
trait U<X> {}

fn main() {}

0 comments on commit b6647b5

Please sign in to comment.