rust/tests/ui/rfcs/rfc-2632-const-trait-impl/effects/auxiliary/cross-crate.rs

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

13 lines
147 B
Rust
Raw Normal View History

2023-10-25 10:28:23 -05:00
#![feature(const_trait_impl, effects)]
pub const fn foo() {}
#[const_trait]
pub trait Bar {
fn bar();
}
impl Bar for () {
fn bar() {}
}