2018-05-18 23:40:44 +01:00
|
|
|
// run-pass
|
|
|
|
// regression test for issue #50825
|
2018-06-08 17:00:49 +01:00
|
|
|
// Make sure that the built-in bound {integer}: Sized is preferred over
|
2018-05-18 23:40:44 +01:00
|
|
|
// the u64: Sized bound in the where clause.
|
|
|
|
|
|
|
|
fn foo(y: &[()])
|
|
|
|
where
|
|
|
|
u64: Sized,
|
|
|
|
{
|
|
|
|
y[0]
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main () {
|
|
|
|
foo(&[()]);
|
|
|
|
}
|