blob: f460fedffb7fb53b137f5ad32a16609f8c07d978 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// compile-flags: -Zverbose
mod mod1 {
pub fn f<T: std::fmt::Display>(t: T)
{
let x = 20;
let c = || println!("{} {}", t, x);
let c1 : () = c;
//~^ ERROR mismatched types
}
}
fn main() {
mod1::f(5i32);
}
|