about summary refs log tree commit diff
path: root/tests/coverage/generic-unused-impl.coverage
blob: c3a3c7242901aeb6742e201a8c4daba0cc0bc8df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
   LL|       |// Regression test for #135235.
   LL|       |trait Foo {
   LL|       |    type Assoc;
   LL|       |
   LL|       |    fn from(s: Self::Assoc) -> Self;
   LL|       |}
   LL|       |
   LL|       |struct W<T>(T);
   LL|       |
   LL|       |impl<T: Foo> From<[T::Assoc; 1]> for W<T> {
   LL|      0|    fn from(from: [T::Assoc; 1]) -> Self {
   LL|      0|        let [item] = from;
   LL|      0|        W(Foo::from(item))
   LL|      0|    }
   LL|       |}
   LL|       |
   LL|      1|fn main() {}