blob: 2dcee5a2eb91233eaa7918f7bdf4ac64d8fdbdac [file] [log] [blame]
// Regression test for https://github.com/rust-lang/rust/issues/100605
fn takes_option(_arg: Option<&String>) {}
fn main() {
takes_option(&None); //~ ERROR 6:18: 6:23: mismatched types [E0308]
let x = String::from("x");
let res = Some(x);
takes_option(&res); //~ ERROR 10:18: 10:22: mismatched types [E0308]
}