Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
where-clauses
/
issue-50825.rs
blob: 4c5c2727824a74e4776656c2f82ae117e59f6bcb [
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
(&[()]);
}