You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 3, 2026. It is now read-only.
$ cargo run
Compiling smartstring-test v0.1.0 (/home/mikevs/devel/rust/smartstring-test)
warning: unused import: `smartstring`
--> src/main.rs:1:5
|
1 | use smartstring;
| ^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error[E0277]: cannot add `&std::string::String` to `std::string::String`
--> src/main.rs:4:40
|
4 | println!("{}", "Hello".to_string() + &(" World".to_string()));
| ^ no implementation for `std::string::String + &std::string::String`
|
= help: the trait `std::ops::Add<&std::string::String>` is not implemented for `std::string::String`
error: aborting due to previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0277`.
error: could not compile `smartstring-test`.
To learn more, run the command again with --verbose.
smartstring 0.2.3.
rust 1.44.1
this fails:
in a weird way: