]> git.lizzy.rs Git - rust.git/blob - tests/ui/str/str-concat-on-double-ref.rs
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / str / str-concat-on-double-ref.rs
1 fn main() {
2     let a: &String = &"1".to_owned();
3     let b: &str = &"2";
4     let c = a + b;
5     //~^ ERROR cannot add `&str` to `&String`
6     println!("{:?}", c);
7 }