mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Add a regression test for #110933
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
0d03812e24
commit
421105b453
20
tests/ui/associated-consts/issue-110933.rs
Normal file
20
tests/ui/associated-consts/issue-110933.rs
Normal file
@ -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() {}
|
Loading…
Reference in New Issue
Block a user