A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Re: Rust hello world - Stikked
From Soft Capybara, 5 Years ago, written in Rust.
This paste is a reply to Rust hello world from fosspowered - go back
Embed
Viewing differences between Rust hello world and Re: Rust hello world
const PI: f64 = 3.14159265359;

fn main() {
    let p1 : fn(i32) -> i32 = plus_one;
    
    println!("Hello, world!");
    println!("{1}, {0}", "world", "hello");
    println!("{greeting}, {name}", greeting="hello", name="world");

    let x : str = format!("{}, {}!", "Hello", "world");
    println!("{}", x);
    println!("? value is {}", PI);
    println!("Plus one is {}", p1(23));
    let c : char = 'a';
    let square = |x| x * x;
    println!("{}", square(16));
}

fn plus_one(a: i32) -> i32 {
    a + 1
}
U2FsdGVkX1/BhGKzXoVv9Z+IEeXgOz6dKPnGKtMNBtcQFJgoKgrfnoP2bECfZmC97ZP0ME8fufZ2JMEhyuFLWZzHjBI3AyxVMWsc
yHHCjj3/bg9yuF5dS7DIvpkMb6tydQDalOtg2cRDHMNOU2Q9RoFM4eDki7v7tW0eVd/rO+Dgs7b811MeRnJ7Lty009ZfaIS2moao
J+bWnOVoGQHVpZWfI09apf5iLDd7+hqmZmVXkqM/w4DbaqBfCI3IFGiH0hW+VkxRC1h6Iv6u+CxmjUtuLLVR7P+8btvBzgRFpCqJ
W9VNVVSDMgtK0+rJJYPZegWOksh2rSkWLEYnAuUcYYK3ciIklQOR5ZMbLcM6A02cDwDiNhVsm/iZ43inMO5x2nU59WBJ0/izZ2Di
O/ehK9uO3PfZX85h5zZC/oUjX2MwfKoOJU/j3sUB4JIfTIgwxn2dHuGI+5/9Uwu9jJOyfv+zhew4NONTlMEeQBwtuGX2MjDAmsxQ
OeGHb15zY6byxNIGhd40YVwfo8MVDWfxO++Z1LckghLJueW4CRQLMPMypcb5/TeoAn5/dDMsyXI0TvEhXHPlD+pD8Ux0mh14xTPI
e4pzvhvf8fRfsqKtr3lJCXaTp1m3lKh2UjY8ovsBmv+PajfVmulgTwaYQCTZ6A==