rust/tests/ui/proc-macro/issue-66286.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
262 B
Rust
Raw Permalink Normal View History

//@ proc-macro: issue-66286.rs
2020-12-04 23:02:56 +00:00
// Regression test for #66286.
extern crate issue_66286;
#[issue_66286::vec_ice]
2024-10-31 10:39:45 +00:00
pub extern "C" fn foo(_: Vec(u32)) -> u32 {
2020-12-04 23:02:56 +00:00
//~^ ERROR: parenthesized type parameters may only be used with a `Fn` trait
0
}
fn main() {}