diff --git a/compiler/noirc_frontend/src/tests.rs b/compiler/noirc_frontend/src/tests.rs index 254349f8606..870c781b89d 100644 --- a/compiler/noirc_frontend/src/tests.rs +++ b/compiler/noirc_frontend/src/tests.rs @@ -2430,10 +2430,10 @@ fn use_super() { mod foo { use super::some_func; - } - fn main() { - some_func(); + fn bar() { + some_func(); + } } "#; assert_no_errors(src);