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

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

6 lines
74 B
Rust
Raw Normal View History

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