]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-3389.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-3389.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_camel_case_types)]
4
5 struct trie_node {
6 content: Vec<String> ,
7 children: Vec<trie_node> ,
8 }
9
10 fn print_str_vector(vector: Vec<String> ) {
11 for string in &vector {
12 println!("{}", *string);
13 }
14 }
15
16 pub fn main() {
17 let mut node: trie_node = trie_node {
18 content: Vec::new(),
19 children: Vec::new()
20 };
21 let v = vec!["123".to_string(), "abc".to_string()];
22 node.content = vec!["123".to_string(), "abc".to_string()];
23 print_str_vector(v);
24 print_str_vector(node.content.clone());
25
26 }