summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/const-generic-default-wont-borrowck.rs
blob: e64adacac9fd26ad6ac1c08240d352a41f704a07 (plain)
1
2
3
4
5
struct X<const N: usize = {
    let s: &'static str; s.len() //~ ERROR E0381
}>;

fn main() {}