ad35979c50
Address comments Update limits
13 lines
350 B
Rust
13 lines
350 B
Rust
#![feature(trait_alias)] // Enabled to reduce stderr output, but can be triggered even if disabled.
|
|
trait Trait {}
|
|
trait WithType {
|
|
type Ctx;
|
|
}
|
|
trait Alias<T> = where T: Trait;
|
|
|
|
impl<T> WithType for T {
|
|
type Ctx = dyn Alias<T>;
|
|
//~^ ERROR the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
|
|
}
|
|
fn main() {}
|