]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-27890.rs
Rollup merge of #107058 - clubby789:eqeq-homoglyph, r=wesleywiser
[rust.git] / tests / ui / consts / issue-27890.rs
1 // run-pass
2 static PLUS_ONE: &'static (dyn Fn(i32) -> i32 + Sync) = (&|x: i32| { x + 1 })
3     as &'static (dyn Fn(i32) -> i32 + Sync);
4
5 fn main() {
6     assert_eq!(PLUS_ONE(2), 3);
7 }