diff --git a/tests/ui/ice-4121.rs b/tests/ui/ice-4121.rs new file mode 100644 index 000000000000..e1a142fdcb67 --- /dev/null +++ b/tests/ui/ice-4121.rs @@ -0,0 +1,13 @@ +use std::mem; + +pub struct Foo(A, B); + +impl Foo { + const HOST_SIZE: usize = mem::size_of::(); + + pub fn crash() -> bool { + Self::HOST_SIZE == 0 + } +} + +fn main() {}