// Copyright 2015 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![recursion_limit="1024"] pub struct S0(T,T); pub struct S1(Option>>>,Option>>>); pub struct S2(Option>>>,Option>>>); pub struct S3(Option>>>,Option>>>); pub struct S4(Option>>>,Option>>>); pub struct S5(Option>>>,Option>>>,Option); trait Foo { fn xxx(&self); } trait Bar {} // anything local or #[fundamental] impl Foo for T where T: Bar, T: Sync { fn xxx(&self) {} } impl Foo for S5 { fn xxx(&self) {} } impl Foo for S5 { fn xxx(&self) {} } fn main() { let _ = >::xxx; //~ ERROR cannot resolve `S5<_> : Foo` }