fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 2 --> $DIR/hidden-lifetimes.rs:28:54 3 | 4LL | fn hide_ref<'a, 'b, T: 'static>(x: &'a mut &'b T) -> impl Swap + 'a { 5 | ^^^^^^^^^^^^^^ 6 | 7note: hidden type `&'a mut &'b T` captures the lifetime `'b` as defined on the function body at 28:17 8 --> $DIR/hidden-lifetimes.rs:28:17 9 | 10LL | fn hide_ref<'a, 'b, T: 'static>(x: &'a mut &'b T) -> impl Swap + 'a { 11 | ^^ 12 13error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds 14 --> $DIR/hidden-lifetimes.rs:45:70 15 | 16LL | fn hide_rc_refcell<'a, 'b: 'a, T: 'static>(x: Rc<RefCell<&'b T>>) -> impl Swap + 'a { 17 | ^^^^^^^^^^^^^^ 18 | 19note: hidden type `std::rc::Rc<std::cell::RefCell<&'b T>>` captures the lifetime `'b` as defined on the function body at 45:24 20 --> $DIR/hidden-lifetimes.rs:45:24 21 | 22LL | fn hide_rc_refcell<'a, 'b: 'a, T: 'static>(x: Rc<RefCell<&'b T>>) -> impl Swap + 'a { 23 | ^^ 24 25error: aborting due to 2 previous errors 26 27For more information about this error, try `rustc --explain E0700`.