blob: 0a7f405746c88536ace10387884586a4d5071b20 [file] [log] [blame]
// Issue #876
#![no_implicit_prelude]
use std::vec::Vec;
fn last<T>(v: Vec<&T> ) -> std::option::Option<T> {
panic!();
}
fn main() {
let y;
let x : char = last(y);
//~^ ERROR mismatched types
//~| expected type `char`
//~| found type `std::option::Option<_>`
//~| expected char, found enum `std::option::Option`
}