rust/tests/ui/const-generics/const-generic-default-wont-borrowck.fixed

7 lines
120 B
Rust
Raw Normal View History

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