rust/tests/ui/rfcs/rfc-2632-const-trait-impl/issue-103677.rs

6 lines
74 B
Rust
Raw Normal View History

// check-pass
const _: fn(&String) = |s| { &*s as &str; };
fn main() {}