summaryrefslogtreecommitdiff
path: root/tests/ui/suggestions/type-ascription-instead-of-method.stderr
blob: 83bc33f410ad0800d69b61c25ecd3729b36a84e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error: expected type, found `"foo"`
  --> $DIR/type-ascription-instead-of-method.rs:3:21
   |
LL |     let _ = Box:new("foo".to_string());
   |                -    ^^^^^ expected type
   |                |
   |                help: maybe write a path separator here: `::`
   |
   = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`

error: aborting due to previous error