]> git.proxmox.com Git - rustc.git/blob - tests/ui/nll/user-annotations/issue-55219.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / nll / user-annotations / issue-55219.rs
1 // Regression test for #55219:
2 //
3 // The `Self::HASH_LEN` here expands to a "self-type" where `T` is not
4 // known. This unbound inference variable was causing an ICE.
5 //
6 // check-pass
7
8 pub struct Foo<T>(T);
9
10 impl<T> Foo<T> {
11 const HASH_LEN: usize = 20;
12
13 fn stuff() {
14 let _ = Self::HASH_LEN;
15 }
16 }
17
18 fn main() { }