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

7 lines
120 B
Rust

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