Not a doc comment, add a struct

This commit is contained in:
Jasper Bekkers 2020-07-24 14:20:32 +01:00
parent e764179e86
commit cf71e44bb6
No known key found for this signature in database
GPG Key ID: C59CE25F4DA6625D
2 changed files with 9 additions and 3 deletions

View File

@ -195,4 +195,4 @@ pub fn __rustc_codegen_backend() -> Box<dyn CodegenBackend> {
}
/// https://github.com/bjorn3/rustc_codegen_cranelift/blob/1b8df386aa72bc3dacb803f7d4deb4eadd63b56f/src/base.rs
// https://github.com/bjorn3/rustc_codegen_cranelift/blob/1b8df386aa72bc3dacb803f7d4deb4eadd63b56f/src/base.rs

View File

@ -29,6 +29,12 @@ unsafe impl<'a, T: ?Sized> Copy for &'a T {}
unsafe impl<T: ?Sized> Copy for *const T {}
unsafe impl<T: ?Sized> Copy for *mut T {}
pub fn jasper() {
let _ktest = 666666666;
struct Jasper {
data: u32,
}
pub fn jasper() {
let _ktest = Jasper {
data: 666666
};
}