summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/issue-103677.rs
blob: d81724a3685ae0e23555e65c3b85e918e3a1d670 (plain)
1
2
3
4
5
// check-pass

const _: fn(&String) = |s| { &*s as &str; };

fn main() {}