2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2015-01-11 14:52:37 -05:00
|
|
|
// Test that we do not error out because of a (False) ambiguity
|
|
|
|
// between the builtin rules for Sized and the where clause. Issue
|
|
|
|
// #20959.
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-01-11 14:52:37 -05:00
|
|
|
fn foo<K>(x: Option<K>)
|
|
|
|
where Option<K> : Sized
|
|
|
|
{
|
|
|
|
let _y = x;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(Some(22));
|
|
|
|
}
|