about summary refs log tree commit diff
path: root/tests/ui/async-await/async-drop/open-drop-error2.stderr
blob: e849829b1c78b3856f5dfff27d9c48fadc229853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0277]: the size for values of type `str` cannot be known at compilation time
  --> $DIR/open-drop-error2.rs:12:15
   |
LL | fn wrong() -> impl Sized {
   |               ^^^^^^^^^^ doesn't have a size known at compile-time
LL |
LL |     *"abc" // Doesn't implement Sized
   |     ------ return type was inferred to be `str` here
   |
   = help: the trait `Sized` is not implemented for `str`
help: references are always `Sized`, even if they point to unsized data; consider not dereferencing the expression
   |
LL -     *"abc" // Doesn't implement Sized
LL +     "abc" // Doesn't implement Sized
   |

error: aborting due to 1 previous error

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