mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
tests: add cases for type alias issues
This commit is contained in:
committed by
Caleb Cartwright
parent
eee8f0419d
commit
0023abfb2c
@@ -0,0 +1,5 @@
|
||||
macro_rules! m {
|
||||
() => {
|
||||
type Type;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// rustfmt-version: Two
|
||||
|
||||
pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>+ ExactSizeIterator+ 'a;
|
||||
|
||||
trait FOo {pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>+ ExactSizeIterator+ 'a;}
|
||||
|
||||
impl Bar {pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>+ ExactSizeIterator+ 'a;}
|
||||
@@ -0,0 +1,2 @@
|
||||
#[cfg(any())]
|
||||
type Type : Bound ;
|
||||
@@ -0,0 +1,5 @@
|
||||
macro_rules! m {
|
||||
() => {
|
||||
type Type;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
// rustfmt-version: Two
|
||||
|
||||
pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
|
||||
+ ExactSizeIterator
|
||||
+ 'a;
|
||||
|
||||
trait FOo {
|
||||
pub type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
|
||||
+ ExactSizeIterator
|
||||
+ 'a;
|
||||
}
|
||||
|
||||
impl Bar {
|
||||
type Iter<'a, D> = impl DoubleEndedIterator<Item = (SomethingSomethingSomethingLongType<D>)>
|
||||
+ ExactSizeIterator
|
||||
+ 'a;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
#[cfg(any())]
|
||||
type Type: Bound;
|
||||
Reference in New Issue
Block a user