about summary refs log tree commit diff
path: root/tests/ui/higher-ranked/well-formed-aliases.stderr
blob: 4a6f4e961d99565a283fa96b2b5e3f7f95bd0eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0277]: the size for values of type `str` cannot be known at compilation time
  --> $DIR/well-formed-aliases.rs:5:52
   |
LL | fn test<T>(f: for<'a> fn(<&'a T as Trait>::Gat<&'a [str]>)) where for<'a> &'a T: Trait {}
   |                                                    ^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `Sized` is not implemented for `str`
   = note: slice and array elements must have `Sized` type

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0277`.