rust/tests/ui/traits/alias/style_lint.rs

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

9 lines
217 B
Rust
Raw Normal View History

//@ check-pass
#![feature(trait_alias)]
trait Foo = std::fmt::Display + std::fmt::Debug;
trait bar = std::fmt::Display + std::fmt::Debug; //~WARN trait alias `bar` should have an upper camel case name
fn main() {}