Sign in
fuchsia
/
third_party
/
rust
/
780f95dd182b1a432159430add57e9ab7cb45dd6
/
.
/
tests
/
ui
/
traits
/
false-ambiguity-where-clause-builtin-bound.rs
blob: ab9d10d14fdd015797fee0b37fb0a4b9ef66c9e7 [
file
] [
log
] [
blame
]
//@ 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
));
}