blob: fe27d029e66350665a6a36e56b83532e314df981 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  | 
// Make sure we treat the error type as freeze to suppress useless errors.
struct MyStruct {
    foo: Option<UndefinedType>,
    //~^ ERROR cannot find type `UndefinedType` in this scope
}
impl MyStruct {
    pub const EMPTY_REF: &'static Self = &Self::EMPTY;
    pub const EMPTY: Self = Self {
        foo: None,
    };
}
fn main() {}
 
  |