mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
24 lines
417 B
Rust
24 lines
417 B
Rust
// output doesn't get corrupted when using comments within generic type parameters of a trait
|
|
|
|
pub trait Something<
|
|
A,
|
|
// some comment
|
|
B,
|
|
C
|
|
> {
|
|
fn a(&self, x: A) -> i32;
|
|
fn b(&self, x: B) -> i32;
|
|
fn c(&self, x: C) -> i32;
|
|
}
|
|
|
|
pub trait SomethingElse<
|
|
A,
|
|
/* some comment */
|
|
B,
|
|
C
|
|
> {
|
|
fn a(&self, x: A) -> i32;
|
|
fn b(&self, x: B) -> i32;
|
|
fn c(&self, x: C) -> i32;
|
|
}
|