Skip to content

Commit

Permalink
Rollup merge of rust-lang#81843 - bstrie:issue-29821, r=lcnr
Browse files Browse the repository at this point in the history
Add regression test for rust-lang#29821

Closes rust-lang#29821
  • Loading branch information
GuillaumeGomez authored Feb 7, 2021
2 parents b2beb67 + d2a3c04 commit 9a82417
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/test/ui/issues/issue-29821.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// build-pass

pub trait Foo {
type FooAssoc;
}

pub struct Bar<F: Foo> {
id: F::FooAssoc
}

pub struct Baz;

impl Foo for Baz {
type FooAssoc = usize;
}

static mut MY_FOO: Bar<Baz> = Bar { id: 0 };

fn main() {}

0 comments on commit 9a82417

Please sign in to comment.