rust/tests/ui/const-generics/issues/issue-70125-2.rs

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

13 lines
137 B
Rust
Raw Normal View History

// run-pass
fn main() {
<()>::foo();
}
trait Foo<const X: usize> {
fn foo() -> usize {
X
}
}
2020-03-27 15:56:19 -05:00
impl Foo<3> for () {}