Files
rust/tests/ui/rfcs/rfc-2632-const-trait-impl/ice-123664-unexpected-bound-var.rs

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

8 lines
221 B
Rust
Raw Normal View History

#![allow(incomplete_features)]
#![feature(generic_const_exprs, const_trait_impl, effects)]
const fn with_positive<F: ~const Fn()>() {}
//~^ ERROR `~const` can only be applied to `#[const_trait]` traits
pub fn main() {}