]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-50825.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-50825.rs
CommitLineData
94b46f34
XL
1// run-pass
2// regression test for issue #50825
3// Make sure that the built-in bound {integer}: Sized is preferred over
4// the u64: Sized bound in the where clause.
83c7162d 5
94b46f34
XL
6fn foo(y: &[()])
7where
8 u64: Sized,
9{
10 y[0]
11}
041b39d2 12
94b46f34
XL
13fn main () {
14 foo(&[()]);
223e47cc 15}