]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/issues/auxiliary/const_generic_issues_lib.rs
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / const-generics / issues / auxiliary / const_generic_issues_lib.rs
CommitLineData
1b1a35ee
XL
1#![cfg_attr(full, feature(const_generics))]
2#![cfg_attr(full, allow(incomplete_features))]
3dfed10e
XL
3
4// All of these three items must be in `lib2` to reproduce the error
5
6pub trait TypeFn {
7 type Output;
8}
9
10pub struct GenericType<const B: i8>;
11
12// Removing the braces around `42` resolves the crash
13impl TypeFn for GenericType<{ 42 }> {
14 type Output = ();
15}