]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dropck/issue-54943-1.rs
Rollup merge of #105829 - the8472:tidy-style, r=jyn514
[rust.git] / src / test / ui / dropck / issue-54943-1.rs
1 // This test is a minimal version of an ICE in the dropck-eyepatch tests
2 // found in the fix for #54943.
3
4 // check-pass
5
6 fn foo<T>(_t: T) {
7 }
8
9 fn main() {
10     struct A<'a, B: 'a>(&'a B);
11     let (a1, a2): (String, A<_>) = (String::from("auto"), A(&"this"));
12     foo((a1, a2));
13 }