]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/bugs/issue-87755.rs
Auto merge of #105102 - compiler-errors:copy-impl-considering-regions, r=lcnr
[rust.git] / tests / ui / generic-associated-types / bugs / issue-87755.rs
1 // check-fail
2 // known-bug: #87755
3
4 // This should pass.
5
6 use std::fmt::Debug;
7
8 trait Foo {
9     type Ass where Self::Ass: Debug;
10 }
11
12 #[derive(Debug)]
13 struct Bar;
14
15 impl Foo for Bar {
16     type Ass = Bar;
17 }
18
19 fn main() {}