Remove a feature attribute for an accepted feature

This commit is contained in:
Oli Scherer 2021-10-05 12:32:57 +00:00
parent d435101537
commit 56e79e6ce2
4 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,5 @@
// compile-flags:-Zborrowck=mir
#![feature(member_constraints)]
#![feature(type_alias_impl_trait)]
#[derive(Clone)]

View File

@ -1,5 +1,5 @@
error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
--> $DIR/error-handling-2.rs:13:60
--> $DIR/error-handling-2.rs:12:60
|
LL | fn foo<'a: 'b, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
| -- ^^^^^^^^^

View File

@ -1,4 +1,3 @@
#![feature(member_constraints)]
#![feature(type_alias_impl_trait)]
pub trait A {

View File

@ -1,11 +1,11 @@
error[E0207]: the lifetime parameter `'a` is not constrained by the impl trait, self type, or predicates
--> $DIR/issue-74761-2.rs:8:6
--> $DIR/issue-74761-2.rs:7:6
|
LL | impl<'a, 'b> A for () {
| ^^ unconstrained lifetime parameter
error[E0207]: the lifetime parameter `'b` is not constrained by the impl trait, self type, or predicates
--> $DIR/issue-74761-2.rs:8:10
--> $DIR/issue-74761-2.rs:7:10
|
LL | impl<'a, 'b> A for () {
| ^^ unconstrained lifetime parameter