rust/tests/ui/associated-consts/issue-110933.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
296 B
Rust
Raw Normal View History

// 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() {}