2 // compile-flags: -Z chalk
4 // Test that `Clone` is correctly implemented for builtin types.
9 fn test_clone<T: Clone>(arg: T) {
13 fn test_copy<T: Copy>(arg: T) {
18 fn test_copy_clone<T: Copy + Clone>(arg: T) {
26 // FIXME: add closures when they're considered WF
30 // FIXME(#86252): reinstate array test after chalk upgrade
31 //test_copy_clone([1; 56]);
32 test_copy_clone((1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
33 test_copy_clone((1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, true, 'a', 1.1));
35 test_copy_clone(((1, 1), (1, 1, 1), (1.1, 1, 1, 'a'), ()));