Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- --feature core_intrinsics fn f<T: 'static + Sized>(v: V) -> &'static str { unsafe { std::intrinsics::type_name::<T>() } } f(1)
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `core_intrinsics`
- --> src/main.rs:6:19
- |
- 6 | --feature core_intrinsics fn f<T: 'static + Sized>(v: V) -> &'static str { unsafe { std::intrinsics::type_name::<T>() } } f(1)
- | ^^^^^^^^^^^^^^^ expected one of 8 possible tokens here
- error[E0425]: cannot find value `feature` in this scope
- --> src/main.rs:6:11
- |
- 6 | --feature core_intrinsics fn f<T: 'static + Sized>(v: V) -> &'static str { unsafe { std::intrinsics::type_name::<T>() } } f(1)
- | ^^^^^^^ not found in this scope
- error: aborting due to 2 previous errors
- For more information about this error, try `rustc --explain E0425`.
- error: Could not compile `playground`.
- To learn more, run the command again with --verbose.
- */
- /* ~~~~=== stdout ===~~~~
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement