]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2632-const-trait-impl/const-impl-recovery.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / const-impl-recovery.rs
CommitLineData
fc512014 1#![feature(const_trait_impl)]
fc512014
XL
2
3trait Foo {}
4
5const impl Foo for i32 {} //~ ERROR: expected identifier, found keyword
6
7trait Bar {}
8
9const impl<T: Foo> Bar for T {} //~ ERROR: expected identifier, found keyword
10
11const fn still_implements<T: Bar>() {}
12
13const _: () = still_implements::<i32>();
14
15fn main() {}