Skip to content

Commit 87ba8d2

Browse files
committed
update test
1 parent 1add837 commit 87ba8d2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/ui/def_id_nocore.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ pub trait Copy {}
1515
pub unsafe trait Freeze {}
1616

1717
#[lang = "start"]
18-
#[start]
19-
fn start(_argc: isize, _argv: *const *const u8) -> isize {
18+
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize {
2019
0
2120
}
2221

22+
fn main() {}
23+
2324
struct A;
2425

2526
impl A {

tests/ui/def_id_nocore.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: methods called `as_*` usually take `self` by reference or `self` by mutable reference
2-
--> $DIR/def_id_nocore.rs:26:19
2+
--> $DIR/def_id_nocore.rs:27:19
33
|
44
LL | pub fn as_ref(self) -> &'static str {
55
| ^^^^

0 commit comments

Comments
 (0)