summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generic-associated-types/issue-80433-reduced.rs
blob: f15d4d8b1385a7ec47faac3921a8fc17e4e8d16b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// check-pass

#![feature(generic_associated_types)]

struct E {}

trait TestMut {
    type Output<'a>;
    fn test_mut(&mut self) -> Self::Output<'static>;
}

impl TestMut for E {
    type Output<'a> = usize;
    fn test_mut(&mut self) -> Self::Output<'static> {
        todo!()
    }
}

fn test_simpler<'a>(_: impl TestMut<Output<'a> = usize>) {}

fn main() {
    test_simpler(E {});
}