mirror of https://github.com/KaiserY/trpl-zh-cn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
502 B
13 lines
502 B
3 years ago
|
$ cargo run
|
||
|
Compiling gui v0.1.0 (file:///projects/gui)
|
||
|
error[E0277]: the trait bound `String: Draw` is not satisfied
|
||
|
--> src/main.rs:5:26
|
||
|
|
|
||
|
5 | components: vec![Box::new(String::from("Hi"))],
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Draw` is not implemented for `String`
|
||
|
|
|
||
|
= note: required for the cast to the object type `dyn Draw`
|
||
|
|
||
|
For more information about this error, try `rustc --explain E0277`.
|
||
|
error: could not compile `gui` due to previous error
|