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