2018-09-17 16:37:20 -05:00
|
|
|
error[E0423]: expected value, found struct `String`
|
|
|
|
--> $DIR/issue-22692.rs:12:13
|
|
|
|
|
|
2018-11-27 03:56:36 -06:00
|
|
|
LL | let _ = String.new(); //~ ERROR expected value, found struct `String`
|
2018-09-17 16:37:20 -05:00
|
|
|
| ^^^^^^----
|
|
|
|
| |
|
|
|
|
| help: use `::` to access an associated function: `String::new`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|