mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
18 lines
289 B
Rust
18 lines
289 B
Rust
//@ known-bug: rust-lang/rust #124464
|
|
enum TestOption<T> {
|
|
TestSome(T),
|
|
TestSome(T),
|
|
}
|
|
|
|
pub struct Request {
|
|
bar: TestOption<u64>,
|
|
bar: u8,
|
|
}
|
|
|
|
fn default_instance() -> &'static Request {
|
|
static instance: Request = Request { bar: 17 };
|
|
&instance
|
|
}
|
|
|
|
pub fn main() {}
|