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) {
29 // FIXME: add closures when they're considered WF
30 test_copy_clone([1; 56]);
31 test_copy_clone((1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1));
32 test_copy_clone((1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, true, 'a', 1.1));
34 test_copy_clone(((1, 1), (1, 1, 1), (1.1, 1, 1, 'a'), ()));