@@ -275,18 +275,20 @@ mod path {
275275 //~^ WARN `#[path]` only has an effect
276276}
277277
278- // Don't warn on `automatically_derived` - a custom derive
279- // could reasonally annotate anything that it emits with
280- // this attribute
281278#[ automatically_derived]
279+ //~^ WARN `#[automatically_derived]` only has an effect
282280mod automatically_derived {
283281 mod inner { #![ automatically_derived] }
282+ //~^ WARN `#[automatically_derived]
284283
285284 #[ automatically_derived] fn f ( ) { }
285+ //~^ WARN `#[automatically_derived]
286286
287287 #[ automatically_derived] struct S ;
288+ //~^ WARN `#[automatically_derived]
288289
289290 #[ automatically_derived] type T = S ;
291+ //~^ WARN `#[automatically_derived]
290292
291293 #[ automatically_derived] impl S { }
292294}
@@ -368,22 +370,20 @@ mod ignore {
368370}
369371
370372#[ no_implicit_prelude]
371- //~^ WARN crate-level attribute
372373mod no_implicit_prelude {
373374 mod inner { #![ no_implicit_prelude] }
374- //~^ WARN crate-level attribute
375375
376376 #[ no_implicit_prelude] fn f ( ) { }
377- //~^ WARN crate-level attribute
377+ //~^ WARN `#[no_implicit_prelude]` only has an effect
378378
379379 #[ no_implicit_prelude] struct S ;
380- //~^ WARN crate-level attribute
380+ //~^ WARN `#[no_implicit_prelude]` only has an effect
381381
382382 #[ no_implicit_prelude] type T = S ;
383- //~^ WARN crate-level attribute
383+ //~^ WARN `#[no_implicit_prelude]` only has an effect
384384
385385 #[ no_implicit_prelude] impl S { }
386- //~^ WARN crate-level attribute
386+ //~^ WARN `#[no_implicit_prelude]` only has an effect
387387}
388388
389389#[ reexport_test_harness_main = "2900" ]
0 commit comments