summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/const_derives/derive-const-non-const-type.rs
blob: b575ea8dae2980d745ad76b8c05c5bc2d15430b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// known-bug: #110395
#![feature(derive_const)]

pub struct A;

impl Default for A {
    fn default() -> A { A }
}

#[derive_const(Default)]
pub struct S(A);

fn main() {}