summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-24363.rs
blob: 34726fba9c66a58323410c5b3be2db6ea8a9a3b4 (plain)
1
2
3
4
5
6
fn main() {
    1.create_a_type_error[ //~ `{integer}` is a primitive type and therefore doesn't have fields
        ()+() //~ ERROR cannot add
              //   ^ ensure that we typeck the inner expression ^
    ];
}