about summary refs log tree commit diff
path: root/src/test/ui/estr-subtyping.stderr
blob: 29f210803dd1dac3748c5ff0a28d4366ca89aa90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
error[E0308]: mismatched types
  --> $DIR/estr-subtyping.rs:10:15
   |
LL |    wants_uniq(x);
   |               ^
   |               |
   |               expected struct `std::string::String`, found &str
   |               help: try using a conversion method: `x.to_string()`
   |
   = note: expected type `std::string::String`
              found type `&str`

error: aborting due to previous error

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