1 // Ensure that capturing closures are never coerced to fns 2 // Especially interesting as non-capturing closures can be. 3 main()4 fn main() { 5 let b = 0u8; 6 let bar: fn() -> u8 = || { b }; 7 //~^ ERROR mismatched types 8 } 9