#![allow(bare_trait_objects)] use std::collections::HashMap; use std::cell::RefCell; pub union Foo<'t, 'k> { i: &'t i64, f: &'k f64, } trait Bar<'t, 'k> {} pub union Qux<'t, 'k, I> { i: &'t I, f: &'k I, } trait Tar<'t, 'k, I> {} thread_local! { static a: RefCell>>> = RefCell::new(HashMap::new()); //~^ ERROR missing lifetime specifier //~| ERROR missing lifetime specifier } thread_local! { static b: RefCell>>> = RefCell::new(HashMap::new()); //~^ ERROR missing lifetime specifier //~| ERROR missing lifetime specifier //~| ERROR missing lifetime specifier //~| ERROR missing lifetime specifier //~| ERROR the lifetime bound for this object type cannot be deduced from context //~| ERROR the lifetime bound for this object type cannot be deduced from context } thread_local! { static c: RefCell>>>> = RefCell::new(HashMap::new()); //~^ ERROR missing lifetime specifier //~| ERROR missing lifetime specifier } thread_local! { static d: RefCell>>>> = RefCell::new(HashMap::new()); //~^ ERROR missing lifetime specifier //~| ERROR missing lifetime specifier //~| ERROR missing lifetime specifier //~| ERROR missing lifetime specifier //~| ERROR the lifetime bound for this object type cannot be deduced from context //~| ERROR the lifetime bound for this object type cannot be deduced from context } thread_local! { static e: RefCell>>>> = RefCell::new(HashMap::new()); //~^ ERROR wrong number of lifetime arguments: expected 2, found 1 //~| ERROR wrong number of lifetime arguments: expected 2, found 1 //~| ERROR wrong number of lifetime arguments: expected 2, found 1 //~| ERROR wrong number of lifetime arguments: expected 2, found 1 } thread_local! { static f: RefCell>>>> = RefCell::new(HashMap::new()); //~^ ERROR the lifetime bound for this object type cannot be deduced from context //~| ERROR the lifetime bound for this object type cannot be deduced from context //~| ERROR wrong number of lifetime arguments: expected 2, found 1 //~| ERROR wrong number of lifetime arguments: expected 2, found 1 //~| ERROR wrong number of lifetime arguments: expected 2, found 1 //~| ERROR wrong number of lifetime arguments: expected 2, found 1 //~| ERROR missing lifetime specifier //~| ERROR missing lifetime specifier } fn main() {}