Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-50825.rs
blob: 1ece2e9fc84758fd3945197c51d31217df615e15 [
file
] [
log
] [
blame
]
// run-pass
// regression test for issue #50825
// Make sure that the built-in bound {integer}: Sized is preferred over
// the u64: Sized bound in the where clause.
fn
foo
(
y
:
&[()])
where
u64
:
Sized
,
{
y
[
0
]
}
fn
main
()
{
foo
(&[()]);
}