about summary refs log tree commit diff
path: root/tests/ui/diagnostic-width/non-copy-type-moved.rs
blob: 845457f7e30fb86bf4fdcdb1182f4d2a9c753ee7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ compile-flags: --diagnostic-width=60 -Zwrite-long-types-to-disk=yes

type A = (String, String, String, String);
type B = (A, A, A, A);
type C = (B, B, B, B);
type D = (C, C, C, C);

trait Trait {}

fn require_trait<T: Trait>() {}

fn foo(x: D) {
    let _a = x;
    let _b = x; //~ ERROR use of moved value
}

fn main() {}