Test for melted ICE #4121
This commit is contained in:
parent
47ada9ae07
commit
fb56e90e12
13
tests/ui/ice-4121.rs
Normal file
13
tests/ui/ice-4121.rs
Normal file
@ -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() {}
|
Loading…
Reference in New Issue
Block a user