mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
12 lines
317 B
Rust
12 lines
317 B
Rust
fn foo(s: &i32) -> &i32 {
|
|
let xs;
|
|
xs //~ ERROR: isn't initialized
|
|
}
|
|
fn main() {
|
|
let y;
|
|
// we shouldn't ice with the bound var here.
|
|
assert_eq!(foo, y);
|
|
//~^ ERROR binary operation `==` cannot be applied to type
|
|
//~| ERROR `for<'a> fn(&'a i32) -> &'a i32 {foo}` doesn't implement `Debug`
|
|
}
|