1
Fork 0
rust/src/test/ui/parser/recover-assoc-const-constraint.rs

8 lines
218 B
Rust
Raw Normal View History

#[cfg(FALSE)]
fn syntax() {
bar::<Item = 42>(); //~ ERROR cannot constrain an associated constant to a value
bar::<Item = { 42 }>(); //~ ERROR cannot constrain an associated constant to a value
}
fn main() {}