mirror of https://github.com/rust-lang/rust
17 lines
386 B
Rust
17 lines
386 B
Rust
//@ check-pass
|
|
//@ run-rustfix
|
|
|
|
#![allow(dead_code)]
|
|
#![feature(associated_type_defaults)]
|
|
|
|
trait Trait {
|
|
// Not fine, suggests moving.
|
|
type Assoc where u32: Copy = ();
|
|
//~^ WARNING where clause not allowed here
|
|
// Not fine, suggests moving `u32: Copy`
|
|
type Assoc2 where u32: Copy = () where i32: Copy;
|
|
//~^ WARNING where clause not allowed here
|
|
}
|
|
|
|
fn main() {}
|