]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-85945-check-where-clause-before-suggesting-unsized.stderr
Rollup merge of #105795 - nicholasbishop:bishop-stabilize-efiapi, r=joshtriplett
[rust.git] / tests / ui / suggestions / issue-85945-check-where-clause-before-suggesting-unsized.stderr
1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2   --> $DIR/issue-85945-check-where-clause-before-suggesting-unsized.rs:4:16
3    |
4 LL | fn bar() { foo(""); }
5    |            --- ^^ doesn't have a size known at compile-time
6    |            |
7    |            required by a bound introduced by this call
8    |
9    = help: the trait `Sized` is not implemented for `str`
10 note: required by a bound in `foo`
11   --> $DIR/issue-85945-check-where-clause-before-suggesting-unsized.rs:3:8
12    |
13 LL | fn foo<T>(_: &T) where T: Sized {}
14    |        ^ required by this bound in `foo`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.