Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
where-clauses
/
where-clause-placement-type-alias.rs
blob: 1f3b044c8119b8b35b351c5319a83748f0e0167d [
file
] [
log
] [
blame
]
//@ check-fail
// Fine, but lints as unused
type
Foo
where u32
:
Copy
=
();
// Not fine.
type
Bar
=
()
where u32
:
Copy
;
//~^ ERROR where clauses are not allowed
type
Baz
=
()
where
;
//~^ ERROR where clauses are not allowed
fn
main
()
{}