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

pub struct A;

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

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

fn main() {}