mirror of
https://github.com/rust-lang/rust
synced 2024-09-06 01:11:17 +00:00
12 lines
160 B
Rust
12 lines
160 B
Rust
trait Trait<T> {}
|
|
|
|
fn foo<T>() -> dyn Trait<T>
|
|
where
|
|
dyn Trait<T>: Sized, // pesky sized predicate
|
|
{
|
|
42
|
|
//~^ ERROR mismatched types
|
|
}
|
|
|
|
fn main() {}
|