mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
16 lines
251 B
Rust
16 lines
251 B
Rust
//@ 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(&[()]);
|
|
}
|