1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// use wtools::former as TheModule;
// use wtools::former;
use former as TheModule;
use TheModule as former;
use *;
// #[ cfg( any( feature = "former", feature = "meta_former" ) ) ]
// #[ allow( unused_imports ) ]
// use TheModule::prelude::*;
// #[ cfg( any( feature = "former", feature = "meta_former" ) ) ]
// #[ allow( unused_imports ) ]
// use TheModule::*;
// #[ cfg( all( feature = "meta_former", feature = "meta" ) ) ]
// #[ allow( unused_imports ) ]
// use wtools::meta::prelude::*;
// #[ test_tools::rustversion::stable ]
// #[ test ]
// // #[ cfg( not( feature = "nightly" ) ) ]
// fn trybuild_tests()
// {
// println!( "current_dir : {:?}", std::env::current_dir().unwrap() );
// }
//
// // stable have different information about error
// // that's why these tests are active only for nightly
// #[ cfg( any( feature = "former", feature = "meta_former" ) ) ]
// #[ test_tools::rustversion::nightly ]
// #[ test ]
// fn trybuild_tests()
// {
// use test_tools::dependencies::trybuild;
// println!( "current_dir : {:?}", std::env::current_dir().unwrap() );
// let t = trybuild::TestCases::new();
// t.compile_fail( "../../../rust/test/former/all/wtools_bad_attr.rs" );
// t.compile_fail( "../../../rust/test/former/all/wtools_vector_without_parameter.rs" );
// t.compile_fail( "../../../rust/test/former/all/wtools_hashmap_without_parameter.rs" );
// }
// xxx : qqq : bad!