mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
15 lines
325 B
Rust
15 lines
325 B
Rust
//! Test that nonsense bounds prevent consts from being evaluated at all.
|
|
//@ check-pass
|
|
|
|
#![feature(generic_const_items)]
|
|
#![allow(incomplete_features)]
|
|
trait Trait {
|
|
const ASSOC: u32;
|
|
}
|
|
|
|
// rustfmt eats the where bound
|
|
#[rustfmt::skip]
|
|
const ASSOC: u32 = <&'static ()>::ASSOC where for<'a> &'a (): Trait;
|
|
|
|
fn main() {}
|