mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
tests
This commit is contained in:
parent
b577f95e3c
commit
e86872c95b
23
tests/source/impls.rs
Normal file
23
tests/source/impls.rs
Normal file
@ -0,0 +1,23 @@
|
||||
impl Foo for Bar { fn foo() { "hi" } }
|
||||
|
||||
pub impl Foo for Bar {
|
||||
// Comment 1
|
||||
fn foo() { "hi" }
|
||||
// Comment 2
|
||||
fn foo() { "hi" }
|
||||
// Comment 3
|
||||
}
|
||||
|
||||
pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y> where X: Foo<'a, Z> {
|
||||
fn foo() { "hi" }
|
||||
}
|
||||
|
||||
impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Fooooooooooooooooooooooooooooo<'a, Z>
|
||||
{
|
||||
fn foo() { "hi" }
|
||||
}
|
||||
|
||||
impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Foooooooooooooooooooooooooooo<'a, Z>
|
||||
{
|
||||
fn foo() { "hi" }
|
||||
}
|
38
tests/target/impls.rs
Normal file
38
tests/target/impls.rs
Normal file
@ -0,0 +1,38 @@
|
||||
impl Foo for Bar {
|
||||
fn foo() {
|
||||
"hi"
|
||||
}
|
||||
}
|
||||
|
||||
pub impl Foo for Bar {
|
||||
// Comment 1
|
||||
fn foo() {
|
||||
"hi"
|
||||
}
|
||||
// Comment 2
|
||||
fn foo() {
|
||||
"hi"
|
||||
}
|
||||
}
|
||||
|
||||
pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y> where X: Foo<'a, Z>
|
||||
{
|
||||
fn foo() {
|
||||
"hi"
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y>
|
||||
where X: Fooooooooooooooooooooooooooooo<'a, Z>
|
||||
{
|
||||
fn foo() {
|
||||
"hi"
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'b, X, Y: Foo<Bar>> Foo<'a, X> for Bar<'b, Y> where X: Foooooooooooooooooooooooooooo<'a, Z>
|
||||
{
|
||||
fn foo() {
|
||||
"hi"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user