// run-pass use std::cell::Cell; const NONE_CELL_STRING: Option> = None; struct Foo(#[allow(unused_tuple_struct_fields)] T); impl Foo { const FOO: Option> = None; } fn main() { let _: &'static u32 = &42; let _: &'static Option = &None; // We should be able to peek at consts and see they're None. let _: &'static Option> = &NONE_CELL_STRING; let _: &'static Option> = &Foo::FOO; }