2019-11-03 18:00:00 -06:00
|
|
|
// check-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(non_camel_case_types)]
|
|
|
|
|
2012-08-06 13:08:52 -05:00
|
|
|
// Testing that the B's are resolved
|
|
|
|
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2015-02-12 09:29:52 -06:00
|
|
|
trait clam<A> { fn get(self) -> A; }
|
2012-08-06 13:08:52 -05:00
|
|
|
|
2015-03-25 19:06:52 -05:00
|
|
|
struct foo(isize);
|
2012-08-06 13:08:52 -05:00
|
|
|
|
2013-05-31 17:17:22 -05:00
|
|
|
impl foo {
|
2014-10-09 14:17:22 -05:00
|
|
|
pub fn bar<B,C:clam<B>>(&self, _c: C) -> B { panic!(); }
|
2012-08-06 13:08:52 -05:00
|
|
|
}
|
|
|
|
|
2013-02-01 21:43:17 -06:00
|
|
|
pub fn main() { }
|