blob: 793122bd33d4b875292bcbc0bba0882e3b2f291d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Test that we don't ICE when computing the drop types for
trait Decode<'a> {
type Decoder;
}
trait NonImplementedTrait {
type Assoc;
}
struct NonImplementedStruct;
pub struct ADecoder<'a> {
b: <B as Decode<'a>>::Decoder,
}
fn make_a_decoder<'a>() -> ADecoder<'a> {
//~^ ERROR the trait bound
//~| ERROR the trait bound
panic!()
}
struct B;
impl<'a> Decode<'a> for B {
type Decoder = BDecoder;
//~^ ERROR the trait bound
}
pub struct BDecoder {
non_implemented: <NonImplementedStruct as NonImplementedTrait>::Assoc,
//~^ ERROR the trait bound
}
fn main() {}
|