File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ fn test_compile_errors() {
4
4
t. compile_fail ( "tests/ui/invalid_macro_args.rs" ) ;
5
5
t. compile_fail ( "tests/ui/invalid_property_args.rs" ) ;
6
6
t. compile_fail ( "tests/ui/invalid_pyclass_args.rs" ) ;
7
- t. compile_fail ( "tests/ui/invalid_pymethod_names.rs" ) ;
8
7
t. compile_fail ( "tests/ui/missing_clone.rs" ) ;
9
8
t. compile_fail ( "tests/ui/reject_generics.rs" ) ;
10
9
t. compile_fail ( "tests/ui/wrong_aspyref_lifetimes.rs" ) ;
11
10
// Since the current minimum nightly(2020-01-20) has a different error message,
12
11
// we skip this test.
13
12
// TODO(kngwyu): Remove this `if` when we update minimum nightly.
14
13
if option_env ! ( "TRAVIS_JOB_NAME" ) != Some ( "Minimum nightly" ) {
14
+ t. compile_fail ( "tests/ui/invalid_pymethod_names.rs" ) ;
15
15
t. compile_fail ( "tests/ui/static_ref.rs" ) ;
16
16
}
17
17
}
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ error: name not allowed with this attribute
2
2
--> $DIR/invalid_pymethod_names.rs:10:5
3
3
|
4
4
10 | #[name = "num"]
5
- | ^^^^^^^^^^^^^^^
5
+ | ^
6
6
7
7
error: #[name] can not be specified multiple times
8
8
--> $DIR/invalid_pymethod_names.rs:17:5
9
9
|
10
10
17 | #[name = "foo"]
11
- | ^^^^^^^^^^^^^^^
11
+ | ^
12
12
13
13
error: name not allowed with this attribute
14
14
--> $DIR/invalid_pymethod_names.rs:24:5
15
15
|
16
16
24 | #[name = "makenew"]
17
- | ^^^^^^^^^^^^^^^^^^^
17
+ | ^
You can’t perform that action at this time.
0 commit comments