1 #![feature(lang_items)] 2 #![no_std] 3 4 pub mod str { 5 #![doc(primitive = "str")] 6 7 #[lang = "str_alloc"] 8 impl str { 9 // @has search-index.js foo foo(&self)10 pub fn foo(&self) {} 11 } 12 } 13