Skip to content

Commit

Permalink
Remove a feature attribute for an accepted feature
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Oct 13, 2021
1 parent d435101 commit 56e79e6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
@@ -1,6 +1,5 @@
// compile-flags:-Zborrowck=mir

#![feature(member_constraints)]
#![feature(type_alias_impl_trait)]

#[derive(Clone)]
Expand Down
@@ -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> {
| -- ^^^^^^^^^
Expand Down
1 change: 0 additions & 1 deletion src/test/ui/type-alias-impl-trait/issue-74761-2.rs
@@ -1,4 +1,3 @@
#![feature(member_constraints)]
#![feature(type_alias_impl_trait)]

pub trait A {
Expand Down
4 changes: 2 additions & 2 deletions src/test/ui/type-alias-impl-trait/issue-74761-2.stderr
@@ -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
Expand Down

0 comments on commit 56e79e6

Please sign in to comment.