Skip to content

Commit f6e01e8

Browse files
committed
Add test for issue-48638
1 parent 88a495c commit f6e01e8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/test/ui/wf/issue-48638.rs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// check-pass
2+
3+
pub trait D {}
4+
pub struct DT;
5+
impl D for DT {}
6+
7+
pub trait A<R: D>: Sized {
8+
type AS;
9+
}
10+
11+
pub struct As<R: D>(R);
12+
13+
pub struct AT;
14+
impl<R: D> A<R> for AT {
15+
type AS = As<R>;
16+
}
17+
18+
#[repr(packed)]
19+
struct S(<AT as A<DT>>::AS);
20+
21+
fn main() {}

0 commit comments

Comments
 (0)