Skip to content

Commit

Permalink
Add a regression test for #110933
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Jun 25, 2023
1 parent 0d03812 commit 421105b
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 421105b

Please sign in to comment.