rust/tests/ui/const-generics/const-generic-default-wont-borrowck.rs
2024-04-10 20:36:14 +00:00

7 lines
115 B
Rust

//@ run-rustfix
pub struct X<const N: usize = {
let s: &'static str; s.len() //~ ERROR E0381
}>;
fn main() {}