mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
10 lines
197 B
Rust
10 lines
197 B
Rust
fn foo<T>(_t: T) {}
|
|
|
|
fn main() {
|
|
foo::<u32>('0'); //~ ERROR
|
|
foo::<i32>('0'); //~ ERROR
|
|
foo::<u64>('0'); //~ ERROR
|
|
foo::<i64>('0'); //~ ERROR
|
|
foo::<char>(0u32); //~ ERROR
|
|
}
|