Skip to content

Commit

Permalink
Add test for issue-48638
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Oct 14, 2019
1 parent 88a495c commit f6e01e8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/ui/wf/issue-48638.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// check-pass

pub trait D {}
pub struct DT;
impl D for DT {}

pub trait A<R: D>: Sized {
type AS;
}

pub struct As<R: D>(R);

pub struct AT;
impl<R: D> A<R> for AT {
type AS = As<R>;
}

#[repr(packed)]
struct S(<AT as A<DT>>::AS);

fn main() {}

0 comments on commit f6e01e8

Please sign in to comment.