mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 20:17:50 +00:00
15 lines
338 B
Rust
15 lines
338 B
Rust
![]() |
// 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() {}
|