]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/false-ambiguity-where-clause-builtin-bound.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / traits / false-ambiguity-where-clause-builtin-bound.rs
CommitLineData
b7449926 1// run-pass
85aaf69f
SL
2// Test that we do not error out because of a (False) ambiguity
3// between the builtin rules for Sized and the where clause. Issue
4// #20959.
223e47cc 5
c34b1796
AL
6// pretty-expanded FIXME #23616
7
85aaf69f
SL
8fn foo<K>(x: Option<K>)
9 where Option<K> : Sized
10{
11 let _y = x;
12}
223e47cc
LB
13
14fn main() {
85aaf69f 15 foo(Some(22));
223e47cc 16}