Skip to content

Commit

Permalink
Rollup merge of #113031 - JohnTitor:issue-110933, r=compiler-errors
Browse files Browse the repository at this point in the history
Add a regression test for #110933

Closes #110933
r? `@compiler-errors`
  • Loading branch information
matthiaskrgr authored Jun 25, 2023
2 parents dfd6d70 + 421105b commit d7723f4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/ui/associated-consts/issue-110933.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// check-pass

#![feature(associated_const_equality)]

pub trait Trait {
const ASSOC: usize;
}

pub fn foo<
T: Trait<
ASSOC = {
let a = 10_usize;
let b: &'_ usize = &a;
*b
},
>,
>() {
}

fn main() {}

0 comments on commit d7723f4

Please sign in to comment.