rust/compiler/rustc_ast_passes
Matthias Krüger 2b48e7dbcb
Rollup merge of #119154 - surechen:fix_119067, r=fmease
Simple modification of `non_lifetime_binders`'s diagnostic information to adapt to type binders

fixes #119067

Replace diagnostic information "lifetime bounds cannot be used in this context" to "bounds cannot be used in this context".

```rust
#![allow(incomplete_features)]
#![feature(non_lifetime_binders)]

trait Trait {}

trait Trait2
    where for <T: Trait> ():{}
//~^ ERROR bounds cannot be used in this context
```
2023-12-21 16:43:07 +01:00
..
src Rollup merge of #119154 - surechen:fix_119067, r=fmease 2023-12-21 16:43:07 +01:00
Cargo.toml Update itertools to 0.11. 2023-11-22 08:13:21 +11:00
messages.ftl Simple modification of diagnostic information 2023-12-21 10:17:11 +08:00