Don't lower TypeBound::Lifetime as GenericPredicate::Error

This commit is contained in:
Lukas Wirth 2021-02-20 18:51:42 +01:00
parent ba3a5c518a
commit 9e5192d917
4 changed files with 23 additions and 25 deletions

View file

@ -3417,7 +3417,7 @@ impl<T> Foo<T$0> {}
```
"#]],
);
// lifetimes aren't being substituted yet
// lifetimes bounds arent being tracked yet
check(
r#"
struct Foo<T>(T);
@ -3427,7 +3427,7 @@ impl<T: 'static> Foo<T$0> {}
*T*
```rust
T: {error}
T
```
"#]],
);