Skip to content

Commit

Permalink
Test for melted ICE rust-lang#4121
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Jul 1, 2019
1 parent 47ada9a commit fb56e90
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/ui/ice-4121.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::mem;

pub struct Foo<A, B>(A, B);

impl<A, B> Foo<A, B> {
const HOST_SIZE: usize = mem::size_of::<B>();

pub fn crash() -> bool {
Self::HOST_SIZE == 0
}
}

fn main() {}

0 comments on commit fb56e90

Please sign in to comment.