2020-02-14 11:55:42 +00:00
|
|
|
#![feature(extern_types)]
|
|
|
|
|
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
type A: Ord;
|
|
|
|
//~^ ERROR bounds on `type`s in `extern` blocks have no effect
|
|
|
|
type B<'a> where 'a: 'static;
|
|
|
|
//~^ ERROR `type`s inside `extern` blocks cannot have generic parameters
|
|
|
|
//~| ERROR `type`s inside `extern` blocks cannot have `where` clauses
|
|
|
|
type C<T: Ord> where T: 'static;
|
|
|
|
//~^ ERROR `type`s inside `extern` blocks cannot have generic parameters
|
|
|
|
//~| ERROR `type`s inside `extern` blocks cannot have `where` clauses
|
|
|
|
type D = u8;
|
|
|
|
//~^ ERROR incorrect `type` inside `extern` block
|
|
|
|
|
|
|
|
type E: where;
|
2023-06-08 08:14:54 +00:00
|
|
|
//~^ ERROR `type`s inside `extern` blocks cannot have `where` clauses
|
2020-02-14 11:55:42 +00:00
|
|
|
}
|