diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/crashes/ice-4121.rs')
-rw-r--r-- | src/tools/clippy/tests/ui/crashes/ice-4121.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-4121.rs b/src/tools/clippy/tests/ui/crashes/ice-4121.rs new file mode 100644 index 000000000..e1a142fdc --- /dev/null +++ b/src/tools/clippy/tests/ui/crashes/ice-4121.rs @@ -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() {} |