]> git.lizzy.rs Git - rust.git/blob - tests/ui/dropck/issue-54943-1.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[rust.git] / tests / 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 }