From d55d4e5144602b11544ea5d8047d45d9cf02f98b Mon Sep 17 00:00:00 2001 From: Lukas Stevens Date: Sun, 26 Nov 2017 18:57:34 +0100 Subject: [PATCH] Update ui tests --- tests/ui/stutter.rs | 4 ++++ tests/ui/stutter.stderr | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/tests/ui/stutter.rs b/tests/ui/stutter.rs index 24612fd3b..761339b0a 100644 --- a/tests/ui/stutter.rs +++ b/tests/ui/stutter.rs @@ -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() {} diff --git a/tests/ui/stutter.stderr b/tests/ui/stutter.stderr index 38cbcaa32..e6465a2bc 100644 --- a/tests/ui/stutter.stderr +++ b/tests/ui/stutter.stderr @@ -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; + | ^^^^^^^^^^^^^^^^^^^ +