mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
14 lines
372 B
Rust
14 lines
372 B
Rust
#![feature(fn_delegation)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Trait<'a, 'b, 'c, A = usize, B = u32, C = String, const N: usize = 123> {
|
|
fn foo<T = usize>(&self) {
|
|
//~^ ERROR: defaults for generic parameters are not allowed here
|
|
//~| WARN: this was previously accepted by the compiler but is being phased out
|
|
}
|
|
}
|
|
|
|
reuse Trait::foo;
|
|
|
|
fn main() {}
|