rust/tests/ui/traits/false-ambiguity-where-claus...

16 lines
263 B
Rust

//@ run-pass
// Test that we do not error out because of a (False) ambiguity
// between the builtin rules for Sized and the where clause. Issue
// #20959.
fn foo<K>(x: Option<K>)
where Option<K> : Sized
{
let _y = x;
}
fn main() {
foo(Some(22));
}