]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple-index-fat-types.rs
Merge commit 'c1664c50b27a51f7a78c93ba65558e7c33eabee6' into clippyup
[rust.git] / src / test / ui / tuple-index-fat-types.rs
1 // run-pass
2
3 struct Foo<'a>(&'a [isize]);
4
5 fn main() {
6     let x: &[isize] = &[1, 2, 3];
7     let y = (x,);
8     assert_eq!(y.0, x);
9
10     let x: &[isize] = &[1, 2, 3];
11     let y = Foo(x);
12     assert_eq!(y.0, x);
13 }