blob: fa3ef5907b26ddb0bda112836a3e88b9aedb5720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//! Test that we only evaluate free const items (their def site to be clear)
//! whose generics don't require monomorphization.
#![feature(generic_const_items)]
#![expect(incomplete_features)]
//@ revisions: fail pass
//@[pass] check-pass
const _<_T>: () = panic!();
const _<const _N: usize>: () = panic!();
#[cfg(fail)]
const _<'_a>: () = panic!(); //[fail]~ ERROR evaluation panicked: explicit panic
fn main() {}
|