mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-28 02:22:02 +00:00
18 lines
272 B
Rust
18 lines
272 B
Rust
//@ check-pass
|
|
|
|
#![feature(default_field_values)]
|
|
|
|
struct Value<const VALUE: u8>;
|
|
|
|
impl<const VALUE: u8> Value<VALUE> {
|
|
pub const VALUE: Self = Self;
|
|
}
|
|
|
|
pub struct WithUse {
|
|
_use: Value<{ 0 + 0 }> = Value::VALUE
|
|
}
|
|
|
|
const _: WithUse = WithUse { .. };
|
|
|
|
fn main() {}
|