summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-45296.rs
blob: d3a97e89f9abb229372b1a8b5e98aefdddf0e474 (plain)
1
2
3
4
5
6
fn main() {
    let unused = ();

    #![allow(unused_variables)] //~ ERROR not permitted in this context
    fn foo() {}
}