Skip to content

Commit

Permalink
Update ui tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Stevens committed Nov 26, 2017
1 parent c22455c commit d55d4e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/ui/stutter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ mod foo {
pub fn bar_foo() {}
pub struct FooCake {}
pub enum CakeFoo {}
pub struct Foo7Bar;

// Should not warn
pub struct Foobar;
}

fn main() {}
6 changes: 6 additions & 0 deletions tests/ui/stutter.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,9 @@ error: item name ends with its containing module's name
11 | pub enum CakeFoo {}
| ^^^^^^^^^^^^^^^^^^^

error: item name starts with its containing module's name
--> $DIR/stutter.rs:12:5
|
12 | pub struct Foo7Bar;
| ^^^^^^^^^^^^^^^^^^^

0 comments on commit d55d4e5

Please sign in to comment.