]> git.lizzy.rs Git - rust.git/blob - tests/ui/ice-4121.rs
use a structured suggestion for char-lit-as-u8
[rust.git] / tests / ui / ice-4121.rs
1 use std::mem;
2
3 pub struct Foo<A, B>(A, B);
4
5 impl<A, B> Foo<A, B> {
6     const HOST_SIZE: usize = mem::size_of::<B>();
7
8     pub fn crash() -> bool {
9         Self::HOST_SIZE == 0
10     }
11 }
12
13 fn main() {}