mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +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 ;
|
||||
Reference in New Issue
Block a user