mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
Remove a feature attribute for an accepted feature
This commit is contained in:
parent
d435101537
commit
56e79e6ce2
@ -1,6 +1,5 @@
|
||||
// compile-flags:-Zborrowck=mir
|
||||
|
||||
#![feature(member_constraints)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -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> {
|
||||
| -- ^^^^^^^^^
|
||||
|
@ -1,4 +1,3 @@
|
||||
#![feature(member_constraints)]
|
||||
#![feature(type_alias_impl_trait)]
|
||||
|
||||
pub trait A {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user