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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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() {}