From a05d3a41377f72eb87d7789e96575bd0e445397c Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 28 Jul 2023 21:35:48 +0200 Subject: Automatic generation of error annotations for ui tests --- tests/ui/functions_maxlines.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/ui/functions_maxlines.rs') diff --git a/tests/ui/functions_maxlines.rs b/tests/ui/functions_maxlines.rs index 5e1ee55e010..a3496f56d4a 100644 --- a/tests/ui/functions_maxlines.rs +++ b/tests/ui/functions_maxlines.rs @@ -56,6 +56,8 @@ fn good_lines() { } fn bad_lines() { + //~^ ERROR: this function has too many lines (102/100) + //~| NOTE: `-D clippy::too-many-lines` implied by `-D warnings` println!("Dont get confused by braces: {{}}"); println!("This is bad."); println!("This is bad."); -- cgit 1.4.1-3-g733a5