about summary refs log tree commit diff
path: root/tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs
blob: 178ee0e6663edcf48da9804f46a2c0598a3ff20c (plain)
1
2
3
4
5
6
7
8
9
10
//@ check-pass

#![allow(dead_code)]
// This is ok because we often use the trailing underscore to mean 'prime'


#[forbid(non_camel_case_types)]
type Foo_ = isize;

pub fn main() { }