rust/tests/ui/issues/issue-50825.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
250 B
Rust
Raw Normal View History

// run-pass
// regression test for issue #50825
2018-06-08 16:00:49 +00:00
// 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(&[()]);
}