]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generic-associated-types/issue-80433-reduced.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / generic-associated-types / issue-80433-reduced.rs
CommitLineData
5869c6ff
XL
1// check-pass
2
5869c6ff
XL
3#![feature(generic_associated_types)]
4
5struct E {}
6
7trait TestMut {
8 type Output<'a>;
9 fn test_mut(&mut self) -> Self::Output<'static>;
10}
11
12impl TestMut for E {
13 type Output<'a> = usize;
14 fn test_mut(&mut self) -> Self::Output<'static> {
15 todo!()
16 }
17}
18
19fn test_simpler<'a>(_: impl TestMut<Output<'a> = usize>) {}
20
21fn main() {
22 test_simpler(E {});
23}