]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unsized/unsized-fn-param.stderr
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / unsized / unsized-fn-param.stderr
1 error[E0277]: the size for values of type `str` cannot be known at compilation time
2   --> $DIR/unsized-fn-param.rs:11:11
3    |
4 LL |     foo11("bar", &"baz");
5    |           ^^^^^ doesn't have a size known at compile-time
6    |
7    = help: the trait `Sized` is not implemented for `str`
8    = note: required for the cast to the object type `dyn AsRef<Path>`
9
10 error[E0277]: the size for values of type `str` cannot be known at compilation time
11   --> $DIR/unsized-fn-param.rs:13:19
12    |
13 LL |     foo12(&"bar", "baz");
14    |                   ^^^^^ doesn't have a size known at compile-time
15    |
16    = help: the trait `Sized` is not implemented for `str`
17    = note: required for the cast to the object type `dyn AsRef<Path>`
18
19 error[E0277]: the size for values of type `str` cannot be known at compilation time
20   --> $DIR/unsized-fn-param.rs:16:11
21    |
22 LL |     foo21("bar", &"baz");
23    |           ^^^^^ doesn't have a size known at compile-time
24    |
25    = help: the trait `Sized` is not implemented for `str`
26    = note: required for the cast to the object type `dyn AsRef<str>`
27
28 error[E0277]: the size for values of type `str` cannot be known at compilation time
29   --> $DIR/unsized-fn-param.rs:18:19
30    |
31 LL |     foo22(&"bar", "baz");
32    |                   ^^^^^ doesn't have a size known at compile-time
33    |
34    = help: the trait `Sized` is not implemented for `str`
35    = note: required for the cast to the object type `dyn AsRef<str>`
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0277`.