---
title: "Discussion on \"Rust Learning Note: Global Variable\" | Hashnode"
description: "Discussion on \"Rust Learning Note: Global Variable\". This article is a summary of Chapter 4.7 of Rust Course (course.rs/)\nGlobal Variables Initialized at Compile Time\nStatic Constant\nStatic constants are global constants that can be used anywhere in the program, regardless of the scope in which it is d..."
url: "https://hashnode.com/posts/rust-learning-note-global-variable/658c40ba1daa2fa1b0fd851c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Rust Learning Note: Global Variable](https://raine-yang.com/rust-learning-note-global-variable?utm_source=hashnode&utm_medium=feed)

This article is a summary of Chapter 4.7 of Rust Course (course.rs/) Global Variables Initialized at Compile Time Static Constant Static constants are global constants that can be used anywhere in the program, regardless of the scope in which it is d...

Dec 27, 2023 · 3 min read · raine-yang.com  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#global-variables](https://hashnode.com/tag/global-variables)
-   [#variables-and-constants](https://hashnode.com/tag/variables-and-constants)
-   [#static-variable](https://hashnode.com/tag/static-variable)
-   [#atomic-type](https://hashnode.com/tag/atomic-type)

## Written by

[Raine](https://hashnode.com/@RaineYang)

@RaineYang

  
[View profile](https://hashnode.com/@RaineYang)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
