mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
9 lines
227 B
Rust
9 lines
227 B
Rust
trait Trait {
|
|
type Gat<U: ?Sized>;
|
|
}
|
|
|
|
fn test<T>(f: for<'a> fn(<&'a T as Trait>::Gat<&'a [str]>)) where for<'a> &'a T: Trait {}
|
|
//~^ ERROR the size for values of type `str` cannot be known at compilation time
|
|
|
|
fn main() {}
|