]> git.lizzy.rs Git - rust.git/blob - tests/ui/cross-crate/cci_nested_exe.rs
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / ui / cross-crate / cci_nested_exe.rs
1 // run-pass
2 // aux-build:cci_nested_lib.rs
3
4
5 extern crate cci_nested_lib;
6 use cci_nested_lib::*;
7
8 pub fn main() {
9     let lst = new_int_alist();
10     alist_add(&lst, 22, "hi".to_string());
11     alist_add(&lst, 44, "ho".to_string());
12     assert_eq!(alist_get(&lst, 22), "hi".to_string());
13     assert_eq!(alist_get(&lst, 44), "ho".to_string());
14
15     let lst = new_int_alist_2();
16     alist_add(&lst, 22, "hi".to_string());
17     alist_add(&lst, 44, "ho".to_string());
18     assert_eq!(alist_get(&lst, 22), "hi".to_string());
19     assert_eq!(alist_get(&lst, 44), "ho".to_string());
20 }