]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-54943-1.rs
Don't default on std crate when manipulating browser history
[rust.git] / src / test / ui / issue-54943-1.rs
1 #![feature(nll)]
2
3 // This test is a minimal version of an ICE in the dropck-eyepatch tests
4 // found in the fix for #54943.
5
6 // compile-pass
7
8 fn foo<T>(_t: T) {
9 }
10
11 fn main() {
12     struct A<'a, B: 'a>(&'a B);
13     let (a1, a2): (String, A<_>) = (String::from("auto"), A(&"this"));
14     foo((a1, a2));
15 }