mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
17 lines
225 B
Rust
17 lines
225 B
Rust
fn main() {
|
|
f<'a,>
|
|
//~^ ERROR expected
|
|
//~| ERROR expected
|
|
}
|
|
|
|
fn bar(a: usize, b: usize) -> usize {
|
|
a + b
|
|
}
|
|
|
|
fn foo() {
|
|
let x = 1;
|
|
bar('y, x);
|
|
//~^ ERROR expected
|
|
//~| ERROR mismatched types
|
|
}
|