mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 00:49:30 +00:00
ada8c72f3f
Ignore UI tests since this change makes rustfmt less friendly with UI test comments.
15 lines
436 B
Rust
15 lines
436 B
Rust
// originally from rustc ./src/test/ui/regions/issue-78262.rs
|
|
// ICE: to get the signature of a closure, use substs.as_closure().sig() not fn_sig()
|
|
#![allow(clippy::upper_case_acronyms)]
|
|
|
|
trait TT {}
|
|
|
|
impl dyn TT {
|
|
fn func(&self) {}
|
|
}
|
|
|
|
#[rustfmt::skip]
|
|
fn main() {
|
|
let f = |x: &dyn TT| x.func(); //[default]~ ERROR: mismatched types
|
|
//[nll]~^ ERROR: borrowed data escapes outside of closure
|
|
}
|