diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-06-25 22:34:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-25 22:34:31 +0200 |
| commit | d7723f4180141f439e5607ea9f940b885901d660 (patch) | |
| tree | de18724f1bc46d86d5301cd325f2b6d907425510 | |
| parent | dfd6d708db968e93a67da4bb78acfb17216a627d (diff) | |
| parent | 421105b4537c9671580c45ce9d952982cb074954 (diff) | |
| download | rust-d7723f4180141f439e5607ea9f940b885901d660.tar.gz rust-d7723f4180141f439e5607ea9f940b885901d660.zip | |
Rollup merge of #113031 - JohnTitor:issue-110933, r=compiler-errors
Add a regression test for #110933 Closes #110933 r? `@compiler-errors`
| -rw-r--r-- | tests/ui/associated-consts/issue-110933.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/associated-consts/issue-110933.rs b/tests/ui/associated-consts/issue-110933.rs new file mode 100644 index 00000000000..aa4882ae535 --- /dev/null +++ b/tests/ui/associated-consts/issue-110933.rs @@ -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() {} |
