]>
git.proxmox.com Git - rustc.git/blob - tests/ui/borrowck/issue-92157.rs
2 #![feature(lang_items)]
6 #[cfg(target_os = "linux")]
11 fn start
<T
>(_main
: fn() -> T
, _argc
: isize, _argv
: *const *const u8) -> isize {
12 //~^ ERROR: incorrect number of parameters for the `start` lang item
21 #[lang = "drop_in_place"]
22 #[allow(unconditional_recursion)]
23 pub unsafe fn drop_in_place
<T
: ?Sized
>(to_drop
: *mut T
) {
24 drop_in_place(to_drop
)
30 fn add(self, other
: RHS
) -> Self::Output
;
33 impl Add
<isize> for isize {
35 fn add(self, other
: isize) -> isize {