]> git.lizzy.rs Git - rust.git/blob - src/test/ui/estr-uniq.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / estr-uniq.rs
1 // run-pass
2
3 #![allow(unused_assignments)]
4 #![allow(unknown_lints)]
5
6 #![allow(dead_assignment)]
7
8 pub fn main() {
9     let x : String = "hello".to_string();
10     let _y : String = "there".to_string();
11     let mut z = "thing".to_string();
12     z = x;
13     assert_eq!(z.as_bytes()[0], ('h' as u8));
14     assert_eq!(z.as_bytes()[4], ('o' as u8));
15 }